]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Use rcu_gp_kthread_wake() to wake up grace period kthreads
authorJisheng Zhang <jszhang@marvell.com>
Wed, 22 Jun 2016 09:19:27 +0000 (17:19 +0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 22 Aug 2016 16:33:46 +0000 (09:33 -0700)
commit94d44776737266eccafee32b985fe31fd5e021ca
tree93c4bd1645b181b0bde5d8a7647740d68bc337f7
parentbedc1969150d480c462cdac320fa944b694a7162
rcu: Use rcu_gp_kthread_wake() to wake up grace period kthreads

Commit abedf8e2419f ("rcu: Use simple wait queues where possible in
rcutree") converts Tree RCU's wait queues to simple wait queues,
but it incorrectly reverts the commit 2aa792e6faf1 ("rcu: Use
rcu_gp_kthread_wake() to wake up grace period kthreads").  This can
result in redundant self-wakeups.

This commit therefore replaces the simple wait-queue wakeups with
rcu_gp_kthread_wake(), thus avoiding the redundant wakeups.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c