diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2021-08-11 21:50:14 +0200 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2021-10-20 19:33:09 +0200 |
commit | b924bdab7445946e2ed364a0e6e249d36f1f1158 (patch) | |
tree | c71193a31fa362a74e239ba4c5e862c6847b5349 /tools/perf/scripts/python/syscall-counts.py | |
parent | dc732906c2450939c319fec6e258aa89ecb5a632 (diff) |
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/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions