diff options
author | 2021-08-11 21:50:14 +0200 | |
---|---|---|
committer | 2021-10-20 19:33:09 +0200 | |
commit | b924bdab7445946e2ed364a0e6e249d36f1f1158 (patch) | |
tree | c71193a31fa362a74e239ba4c5e862c6847b5349 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | gfs2: Introduce flag for glock holder auto-demotion (diff) | |
download | wireguard-linux-b924bdab7445946e2ed364a0e6e249d36f1f1158.tar.xz wireguard-linux-b924bdab7445946e2ed364a0e6e249d36f1f1158.zip |
gfs2: Move the inode glock locking to gfs2_file_buffered_write
So far, for buffered writes, we were taking the inode glock in
gfs2_iomap_begin and dropping it in gfs2_iomap_end with the intention of
not holding the inode glock while iomap_write_actor faults in user
pages. It turns out that iomap_write_actor is called inside iomap_begin
... iomap_end, so the user pages were still faulted in while holding the
inode glock and the locking code in iomap_begin / iomap_end was
completely pointless.
Move the locking into gfs2_file_buffered_write instead. We'll take care
of the potential deadlocks due to faulting in user pages while holding a
glock in a subsequent patch.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions