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: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
This commit is contained in:
Paul E. McKenney 2015-12-31 16:27:06 -08:00
parent 23a9bacd35
commit aa5a898876
1 changed files with 8 additions and 6 deletions

View File

@ -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");
if (!can_expedite) {
pr_alert("%s" TORTURE_FLAG pr_alert("%s" TORTURE_FLAG
" Grace periods expedited from boot/sysfs for %s,\n", " Grace periods expedited from boot/sysfs for %s,\n",
torture_type, cur_ops->name); torture_type, cur_ops->name);
pr_alert("%s" TORTURE_FLAG pr_alert("%s" TORTURE_FLAG
" Testing of dynamic grace-period expediting diabled.\n", " Disabled dynamic grace-period expediting.\n",
torture_type); 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)