]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
rcu/nocb: Avoid synchronous wakeup in __call_rcu_nocb_wake()
authorPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 9 Jul 2019 13:54:42 +0000 (06:54 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 13 Aug 2019 21:38:24 +0000 (14:38 -0700)
commit273f034065002bf9480601d66404c991b243b91e
tree544e3ca35b7efaa122064ecdfad5ee43ad006dd8
parentf7a81b12d6af42a9d09be1e5f041169f04b0b67a
rcu/nocb: Avoid synchronous wakeup in __call_rcu_nocb_wake()

When callbacks are in full flow, the common case is waiting for a
grace period, and this grace period will normally take a few jiffies to
complete.  It therefore isn't all that helpful for __call_rcu_nocb_wake()
to do a synchronous wakeup in this case.  This commit therefore turns this
into a timer-based deferred wakeup of the no-CBs grace-period kthread.

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
kernel/rcu/tree_plugin.h