aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorKent Overstreet <[email protected]>2023-08-03 03:39:49 -0400
committerKent Overstreet <[email protected]>2023-10-22 17:10:09 -0400
commit4198bf03bed27aa758de36595416beb604600912 (patch)
tree2d9d553aa272fda35e35dc27790a2c8d89b52e35 /tools/perf/scripts/python
parentf6e6f42bbbe5e421b57182bb0c92a237701ca889 (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')
0 files changed, 0 insertions, 0 deletions