Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rcu/nocb: Delete bypass_timer upon nocb_gp wakeup

A NOCB-gp wake p can safely delete the ->nocb_bypass_timer because
nocb_gp_wait() will recheck again the bypass state and rearm the bypass
timer if necessary. This commit therefore deletes this timer.

Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Cc: Joel Fernandes <joel@joelfernandes.org>
Cc: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>

authored by

Frederic Weisbecker and committed by
Paul E. McKenney
3b2348e2 b6e2c4ed

+2
+2
kernel/rcu/tree_plugin.h
··· 1701 1701 del_timer(&rdp_gp->nocb_timer); 1702 1702 } 1703 1703 1704 + del_timer(&rdp_gp->nocb_bypass_timer); 1705 + 1704 1706 if (force || READ_ONCE(rdp_gp->nocb_gp_sleep)) { 1705 1707 WRITE_ONCE(rdp_gp->nocb_gp_sleep, false); 1706 1708 needwake = true;