Commit aa5a8988 authored by Paul E. McKenney's avatar Paul E. McKenney

rcutorture: Correct no-expedite console messages

The "Disabled dynamic grace-period expediting" console message is
currently printed unconditionally.  This commit causes it to be
output only when it is impossible to switch between normal and
expedited grace periods, which was the original intent.
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent 23a9bacd
...@@ -932,12 +932,14 @@ rcu_torture_writer(void *arg) ...@@ -932,12 +932,14 @@ rcu_torture_writer(void *arg)
int nsynctypes = 0; int nsynctypes = 0;
VERBOSE_TOROUT_STRING("rcu_torture_writer task started"); VERBOSE_TOROUT_STRING("rcu_torture_writer task started");
pr_alert("%s" TORTURE_FLAG if (!can_expedite) {
" Grace periods expedited from boot/sysfs for %s,\n", pr_alert("%s" TORTURE_FLAG
torture_type, cur_ops->name); " Grace periods expedited from boot/sysfs for %s,\n",
pr_alert("%s" TORTURE_FLAG torture_type, cur_ops->name);
" Testing of dynamic grace-period expediting diabled.\n", pr_alert("%s" TORTURE_FLAG
torture_type); " Disabled dynamic grace-period expediting.\n",
torture_type);
}
/* Initialize synctype[] array. If none set, take default. */ /* Initialize synctype[] array. If none set, take default. */
if (!gp_cond1 && !gp_exp1 && !gp_normal1 && !gp_sync1) if (!gp_cond1 && !gp_exp1 && !gp_normal1 && !gp_sync1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment