Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab8f11e5 authored by Paul E. McKenney's avatar Paul E. McKenney Committed by Paul E. McKenney
Browse files

rcu: Make rcu_torture_boost() exit loops at end of test



One of the loops in rcu_torture_boost() fails to check kthread_should_stop(),
and thus might be slowing or even stopping completion of rcutorture tests
at rmmod time.  This commit adds the kthread_should_stop() check to the
offending loop.

Signed-off-by: default avatarPaul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent 93898fb1
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -779,7 +779,8 @@ static int rcu_torture_boost(void *arg)
		 * interval.  Besides, we are running at RT priority,
		 * interval.  Besides, we are running at RT priority,
		 * so delays should be relatively rare.
		 * so delays should be relatively rare.
		 */
		 */
		while (oldstarttime == boost_starttime) {
		while (oldstarttime == boost_starttime &&
		       !kthread_should_stop()) {
			if (mutex_trylock(&boost_mutex)) {
			if (mutex_trylock(&boost_mutex)) {
				boost_starttime = jiffies +
				boost_starttime = jiffies +
						  test_boost_interval * HZ;
						  test_boost_interval * HZ;