From: Paul E. McKenney Date: Wed, 7 Nov 2018 03:22:23 +0000 (-0800) Subject: percpu-refcount: Replace call_rcu_sched() with call_rcu() X-Git-Tag: v5.4-rc1~1980^2^2~17^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36bd1a8e91c66e9def12958547548aa549de9cbf;p=platform%2Fkernel%2Flinux-rpi.git percpu-refcount: Replace call_rcu_sched() with call_rcu() Now that call_rcu()'s callback is not invoked until after all preempt-disable regions of code have completed (in addition to explicitly marked RCU read-side critical sections), call_rcu() can be used in place of call_rcu_sched(). This commit therefore makes that change. Signed-off-by: Paul E. McKenney Cc: Ming Lei Cc: Bart Van Assche Cc: Jens Axboe Acked-by: Tejun Heo --- diff --git a/lib/percpu-refcount.c b/lib/percpu-refcount.c index de10b8c..9877682 100644 --- a/lib/percpu-refcount.c +++ b/lib/percpu-refcount.c @@ -181,7 +181,7 @@ static void __percpu_ref_switch_to_atomic(struct percpu_ref *ref, ref->confirm_switch = confirm_switch ?: percpu_ref_noop_confirm_switch; percpu_ref_get(ref); /* put after confirmation */ - call_rcu_sched(&ref->rcu, percpu_ref_switch_to_atomic_rcu); + call_rcu(&ref->rcu, percpu_ref_switch_to_atomic_rcu); } static void __percpu_ref_switch_to_percpu(struct percpu_ref *ref)