提交 29d39390 编写于 作者: P Paul E. McKenney

torture: Save a line in stutter_wait(): while -> for

Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
上级 a2f2577d
......@@ -576,7 +576,7 @@ void stutter_wait(const char *title)
cond_resched_rcu_qs();
spt = READ_ONCE(stutter_pause_test);
while (spt) {
for (; spt; spt = READ_ONCE(stutter_pause_test)) {
if (spt == 1) {
schedule_timeout_interruptible(1);
} else if (spt == 2) {
......@@ -586,7 +586,6 @@ void stutter_wait(const char *title)
schedule_timeout_interruptible(round_jiffies_relative(HZ));
}
torture_shutdown_absorb(title);
spt = READ_ONCE(stutter_pause_test);
}
}
EXPORT_SYMBOL_GPL(stutter_wait);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册