summaryrefslogtreecommitdiff
path: root/lib/ts_fsm.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-06-13 03:43:06 (GMT)
committerTejun Heo <tj@kernel.org>2013-06-13 03:43:06 (GMT)
commit6a24474da83ea7c8b7d32f05f858b1259994067a (patch)
tree88633b53318c1adb8f648eaf5edcabac8f81b01b /lib/ts_fsm.c
parentc1ae6e9b4db00023b9caed72af49a93abad46452 (diff)
downloadlinux-fsl-qoriq-6a24474da83ea7c8b7d32f05f858b1259994067a.tar.xz
percpu-refcount: consistently use plain (non-sched) RCU
percpu_ref_get/put() are using preempt_disable/enable() while percpu_ref_kill() is using plain call_rcu() instead of call_rcu_sched(). This is buggy as grace periods of the two may not match. Fix it by using plain RCU in percpu_ref_get/put(). (I suggested using sched RCU in the first place but there's no actual benefit in doing so unless we're gonna introduce different variants of get/put to be called while preemption is alredy disabled, which we definitely shouldn't.) Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: Kent Overstreet <koverstreet@google.com>
Diffstat (limited to 'lib/ts_fsm.c')
0 files changed, 0 insertions, 0 deletions