]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
rcu: Clear ->rcu_read_unlock_special only once
authorLai Jiangshan <laijs@linux.alibaba.com>
Fri, 1 Nov 2019 12:06:21 +0000 (05:06 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 24 Jan 2020 18:27:33 +0000 (10:27 -0800)
commit3717e1e9f25ec7059e421ab6fc602cab7063c11c
treee3be4d9999576967141e14a0ade78330474d36e1
parent2eeba5838fd8c5e19bb91e25624116936348e7af
rcu: Clear ->rcu_read_unlock_special only once

In rcu_preempt_deferred_qs_irqrestore(), ->rcu_read_unlock_special is
cleared one piece at a time.  Given that the "if" statements in this
function use the copy in "special", this commit removes the clearing
of the individual pieces in favor of clearing ->rcu_read_unlock_special
in one go just after it has been determined to be non-zero.

Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree_plugin.h