diff options
author | Frederic Weisbecker <[email protected]> | 2009-05-07 23:25:29 +0200 |
---|---|---|
committer | Frederic Weisbecker <[email protected]> | 2009-09-14 07:18:15 +0200 |
commit | d663af807d8bb226394cb7e02f4665f6141a8140 (patch) | |
tree | 56516a97cad01d589bb3da930459bfcd82c5d9d0 /tools/perf/scripts/python/check-perf-trace.py | |
parent | e43d3f21c502dec786f2885a75e25859f18d6ffa (diff) |
kill-the-bkl/reiserfs: conditionaly release the write lock on fs_changed()
The goal of fs_changed() is to check whether the tree changed during a
schedule(). This is a BKL legacy.
A recent patch added an explicit unconditional release/reacquire of the
write lock around the cond_resched() called inside fs_changed.
But it's wasteful to unconditionally do that, we are creating superfluous
lock contention in !TIF_NEED_RESCHED case.
This patch manage that by calling reiserfs_cond_resched() from fs_changed()
which only releases the lock if we are going to reschedule.
[ Impact: inject less lock contention and tree job retries ]
Cc: Jeff Mahoney <[email protected]>
Cc: Chris Mason <[email protected]>
Cc: Ingo Molnar <[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