]> git.ipfire.org Git - thirdparty/linux.git/commit
srcu: Check for concurrent updates of heuristics
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 2 Aug 2024 00:36:21 +0000 (17:36 -0700)
committerNeeraj Upadhyay <neeraj.upadhyay@kernel.org>
Mon, 12 Aug 2024 18:21:35 +0000 (23:51 +0530)
commitc8c3ae83e0bbed6d56a00068c7d10ebf64db48d9
treec7af9dce67e291cbd38ab488f7fc8bb58ac3d5f6
parent29bc83e4d90546aa794a9584786086b141a6ba4d
srcu: Check for concurrent updates of heuristics

SRCU maintains the ->srcu_n_exp_nodelay and ->reschedule_count values
to guide heuristics governing auto-expediting of normal SRCU grace
periods and grace-period-state-machine delays.  This commit adds KCSAN
ASSERT_EXCLUSIVE_WRITER() calls to check for concurrent updates to
these fields.

Signed-off-by: "Paul E. McKenney" <paulmck@kernel.org>
Signed-off-by: Neeraj Upadhyay <neeraj.upadhyay@kernel.org>
kernel/rcu/srcutree.c