Skip to content
Commit 2f2214d4 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcuscale: Prevent hangs for invalid arguments



If an rcuscale torture-test run is given a bad kvm.sh argument, the
test will complain to the console, which is good.  What is bad is that
from the user's perspective, it will just hang for the time specified
by the --duration argument.  This commit therefore forces an immediate
kernel shutdown if a rcu_scale_init()-time error occurs, thus avoiding
the appearance of a hang.  It also forces a console splat in this case
to clearly indicate the presence of an error.

Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 8d68e68a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment