]> git.ipfire.org Git - thirdparty/linux.git/commit
rcu/nocb: Extract nocb_defer_wakeup_cancel() helper
authorJoel Fernandes <joelagnelf@nvidia.com>
Fri, 23 Jan 2026 14:30:31 +0000 (09:30 -0500)
committerBoqun Feng <boqun.feng@gmail.com>
Fri, 23 Jan 2026 19:12:25 +0000 (11:12 -0800)
commitcc74050f13e5f15de7835b96d633484dd6776f53
treee9a0b1277465ce92fbf5173195202ce0eb3141b7
parentb11c1efa7ffedbb3e880d31370d2cb37394ef9f4
rcu/nocb: Extract nocb_defer_wakeup_cancel() helper

The pattern of checking nocb_defer_wakeup and deleting the timer is
duplicated in __wake_nocb_gp() and nocb_gp_wait(). Extract this into a
common helper function nocb_defer_wakeup_cancel().

This removes code duplication and makes it easier to maintain.

Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
kernel/rcu/tree_nocb.h