OSDN Git Service

rcutorture: Warn on individual rcu_torture_init() error conditions
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 5 Aug 2021 20:28:24 +0000 (13:28 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 13 Sep 2021 23:36:16 +0000 (16:36 -0700)
commitefeff6b39b9de4480572c7b0c5eb77204795cb57
treec039b31ab10219accfb5ca1c93b01596d5a84f5c
parentfda84866b1e68ab409074e7fcf1a7db800615445
rcutorture: Warn on individual rcu_torture_init() error conditions

When running rcutorture as a module, any rcu_torture_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 rcutorture
built-in, for example, when using the kvm.sh script.  This commit
therefore adds WARN_ON_ONCE() to allow distinguishing rcu_torture_init()
errors when running rcutorture built-in.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/torture.h
kernel/rcu/rcutorture.c