Skip to content

Commit ab8f11e

Browse files
Paul E. McKenneypaulmck
authored andcommitted
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: Paul E. McKenney <paul.mckenney@linaro.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
1 parent 93898fb commit ab8f11e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎kernel/rcutorture.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,8 @@ static int rcu_torture_boost(void *arg)
779779
* interval. Besides, we are running at RT priority,
780780
* so delays should be relatively rare.
781781
*/
782-
while (oldstarttime == boost_starttime) {
782+
while (oldstarttime == boost_starttime &&
783+
!kthread_should_stop()) {
783784
if (mutex_trylock(&boost_mutex)) {
784785
boost_starttime = jiffies +
785786
test_boost_interval * HZ;

0 commit comments

Comments
 (0)