diff options
author | Peter Zijlstra <[email protected]> | 2015-11-23 15:23:55 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2016-09-22 15:25:54 +0200 |
commit | 259d69b7f056bc9a543c7d184e791ef6c2775081 (patch) | |
tree | e7db40679995eec5e61bc105e095db645d4e5f04 /scripts/gdb/linux/lists.py | |
parent | 7c3f654d8e18942295eeda42f7d75494443980e0 (diff) |
locking/percpu-rwsem: Add down_read_preempt_disable()
Provide a down_read()/up_read() variant that keeps preemption disabled
over the whole thing, when possible.
This avoids a needless preemption point for constructs such as:
percpu_down_read(&global_rwsem);
spin_lock(&lock);
...
spin_unlock(&lock);
percpu_up_read(&global_rwsem);
Which perturbs timings. In particular it was found to cure a
performance regression in a follow up patch in fs/locks.c
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions