diff options
| author | Kent Overstreet <[email protected]> | 2023-08-03 03:39:49 -0400 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2023-10-22 17:10:09 -0400 |
| commit | 4198bf03bed27aa758de36595416beb604600912 (patch) | |
| tree | 2d9d553aa272fda35e35dc27790a2c8d89b52e35 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | f6e6f42bbbe5e421b57182bb0c92a237701ca889 (diff) | |
bcachefs: Fix lock thrashing in __bchfs_fallocate()
We've observed significant lock thrashing on fstests generic/083 in
fallocate, due to dropping and retaking btree locks when checking the
pagecache for data.
This adds a nonblocking mode to bch2_clamp_data_hole(), where we only
use folio_trylock(), and can thus be used safely while btree locks are
held - thus we only have to drop btree locks as a fallback, on actual
lock contention.
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions