]> git.ipfire.org Git - thirdparty/linux.git/commit
rcu: Refactor expedited handling check in rcu_read_unlock_special()
authorJoel Fernandes <joelagnelf@nvidia.com>
Tue, 15 Jul 2025 20:01:52 +0000 (16:01 -0400)
committerNeeraj Upadhyay (AMD) <neeraj.upadhyay@kernel.org>
Wed, 16 Jul 2025 04:31:06 +0000 (10:01 +0530)
commit908a97eba8c8b510996bf5d77d1e3070d59caa6d
tree6b29d82ca4a2e89ec58dc6a58f5e2a7f72c73f6d
parentb41642c87716bbd09797b1e4ea7d904f06c39b7b
rcu: Refactor expedited handling check in rcu_read_unlock_special()

Extract the complex expedited handling condition in rcu_read_unlock_special()
into a separate function rcu_unlock_needs_exp_handling() with detailed
comments explaining each condition.

This improves code readability. No functional change intended.

Reviewed-by: "Paul E. McKenney" <paulmck@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: Neeraj Upadhyay (AMD) <neeraj.upadhyay@kernel.org>
kernel/rcu/tree_plugin.h