aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorFrederic Weisbecker <[email protected]>2009-05-01 01:10:52 +0200
committerFrederic Weisbecker <[email protected]>2009-09-14 07:18:10 +0200
commit148d3504c1d9f964cf14fafc46d2b7d1f0bed2b1 (patch)
tree6b17f1361099e8b579d10e892a8d919eae037354 /tools/perf/scripts/python/check-perf-trace.py
parent5e69e3a4492ea5abfd2e8ddc575448becf28e4d9 (diff)
kill-the-BKL/reiserfs: release the write lock inside get_neighbors()
get_neighbors() is used to get the left and/or right blocks against a given one in order to balance a tree. sb_bread() is used to read the buffer of these neighors blocks and while it waits for this operation, it might sleep. The bkl was released at this point, and then we can also release the write lock before calling sb_bread(). This is safe because if the filesystem is changed after this lock release, the function returns REPEAT_SEARCH (aka SCHEDULE_OCCURRED in the function header comments) in order to repeat the neighbhor research. [ Impact: release the reiserfs write lock when it is not needed ] Cc: Jeff Mahoney <[email protected]> Cc: Chris Mason <[email protected]> Cc: Alexander Beregalov <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions