]> git.ipfire.org Git - thirdparty/linux.git/commit
rcu: Add a small-width RCU watching counter debug option
authorValentin Schneider <vschneid@redhat.com>
Fri, 10 Oct 2025 15:38:13 +0000 (17:38 +0200)
committerFrederic Weisbecker <frederic@kernel.org>
Tue, 28 Oct 2025 16:32:56 +0000 (17:32 +0100)
commitd1e6d2773898c7a1c19e12619d303920d32a9cd0
treeade5216f2431cb9d5c6e028b2e01f9e916b9e3d1
parent3a8660878839faadb4f1a6dd72c3179c1df56787
rcu: Add a small-width RCU watching counter debug option

A later commit will reduce the size of the RCU watching counter to free up
some bits for another purpose. Paul suggested adding a config option to
test the extreme case where the counter is reduced to its minimum usable
width for rcutorture to poke at, so do that.

Make it only configurable under RCU_EXPERT. While at it, add a comment to
explain the layout of context_tracking->state.

Link: http://lore.kernel.org/r/4c2cb573-168f-4806-b1d9-164e8276e66a@paulmck-laptop
Suggested-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Valentin Schneider <vschneid@redhat.com>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
include/linux/context_tracking_state.h
kernel/rcu/Kconfig.debug