]> Gentwo Git Trees - linux/.git/commit
refscale: Do not disable interrupts for tests involving local_bh_enable()
authorPaul E. McKenney <paulmck@kernel.org>
Sun, 2 Nov 2025 22:49:47 +0000 (14:49 -0800)
committerFrederic Weisbecker <frederic@kernel.org>
Fri, 7 Nov 2025 13:37:17 +0000 (14:37 +0100)
commit204ab51445a72eab2b74165061282c868573f59c
tree2a077d9a6d990f0fc415d0929d49ad333fa50e5a
parent448b66a7aaf33cf52dc47dd7807652ce827e8dfd
refscale: Do not disable interrupts for tests involving local_bh_enable()

Some kernel configurations prohibit invoking local_bh_enable() while
interrupts are disabled.  However, refscale disables interrupts to reduce
OS noise during the tests, which results in splats.  This commit therefore
adds an ->enable_irqs flag to the ref_scale_ops structure, and refrains
from disabling interrupts when that flag is set.  This flag is set for
the "bh" and "incpercpubh" scale_type module-parameter values.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
kernel/rcu/refscale.c