summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMikulas Patocka2012-10-23 01:39:16 +0200
committerLinus Torvalds2012-10-28 18:59:36 +0100
commit1bf11c53535ab87e3bf14ecdf6747bf46f601c5d (patch)
tree9170fa956be0f564b988a88685eb82584347c2cf /fs
parentpercpu-rw-semaphores: use light/heavy barriers (diff)
downloadkernel-qcow2-linux-1bf11c53535ab87e3bf14ecdf6747bf46f601c5d.tar.gz
kernel-qcow2-linux-1bf11c53535ab87e3bf14ecdf6747bf46f601c5d.tar.xz
kernel-qcow2-linux-1bf11c53535ab87e3bf14ecdf6747bf46f601c5d.zip
percpu-rw-semaphores: use rcu_read_lock_sched
Use rcu_read_lock_sched / rcu_read_unlock_sched / synchronize_sched instead of rcu_read_lock / rcu_read_unlock / synchronize_rcu. This is an optimization. The RCU-protected region is very small, so there will be no latency problems if we disable preempt in this region. So we use rcu_read_lock_sched / rcu_read_unlock_sched that translates to preempt_disable / preempt_disable. It is smaller (and supposedly faster) than preemptible rcu_read_lock / rcu_read_unlock. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions