workqueue: use rcu_read_lock_sched() instead for accessing pwq in RCU
authorLai Jiangshan <laijs@cn.fujitsu.com>
Tue, 19 Mar 2013 19:28:10 +0000 (03:28 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 20 Mar 2013 18:00:57 +0000 (11:00 -0700)
commit881094532e2a27406a5f06f839087bd152a8a494
tree993b36c51374695056781f6bb01f258aea3e71cc
parent951a078a5285ad31bc22e190616ad54b78fac992
workqueue: use rcu_read_lock_sched() instead for accessing pwq in RCU

rcu_read_lock_sched() is better than preempt_disable() if the code is
protected by RCU_SCHED.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c