summaryrefslogtreecommitdiffstats
path: root/lib/bust_spinlocks.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-06-20 22:50:40 +0200
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-08-19 02:40:09 +0200
commit1eafd31c640d6799c63136246a59d608bed93c74 (patch)
treef2ee193817ab4ce4ca4f789033d65a8a326d16bf /lib/bust_spinlocks.c
parentrcu: Make call_rcu() leak callbacks for debug-object errors (diff)
downloadlinux-1eafd31c640d6799c63136246a59d608bed93c74.tar.xz
linux-1eafd31c640d6799c63136246a59d608bed93c74.zip
rcu: Avoid redundant grace-period kthread wakeups
When setting up an in-the-future "advanced" grace period, the code needs to wake up the relevant grace-period kthread, which it currently does unconditionally. However, this results in needless wakeups in the case where the advanced grace period is being set up by the grace-period kthread itself, which is a non-uncommon situation. This commit therefore checks to see if the running thread is the grace-period kthread, and avoids doing the irq_work_queue()-mediated wakeup in that case. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'lib/bust_spinlocks.c')
0 files changed, 0 insertions, 0 deletions