]> git.baikalelectronics.ru Git - kernel.git/commit
refscale: Warn on individual ref_scale_init() error conditions
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 5 Aug 2021 22:57:12 +0000 (15:57 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 13 Sep 2021 23:36:16 +0000 (16:36 -0700)
commit2233841df0571c1561a6fae21dbb910597ce3c2d
treec76113ef5f9fbea46ca3cbe609ba5a55162b64fb
parentbb71de00392bc345f92103e987148f9b90b78d4b
refscale: Warn on individual ref_scale_init() error conditions

When running refscale as a module, any ref_scale_init() issues will be
reflected in the error code from modprobe or insmod, as the case may be.
However, these error codes are not available when running refscale
built-in, for example, when using the kvm.sh script.  This commit
therefore adds WARN_ON_ONCE() to allow distinguishing ref_scale_init()
errors when running refscale built-in.

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