From: Mikulas Patocka Date: Mon, 22 Oct 2012 23:39:16 +0000 (-0400) Subject: percpu-rw-semaphores: use rcu_read_lock_sched X-Git-Tag: v3.7-rc3~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bf11c53535ab87e3bf14ecdf6747bf46f601c5d;p=pandora-kernel.git 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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed