diff options
author | Paul E. McKenney <paul.mckenney@linaro.org> | 2011-08-18 12:30:32 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2011-09-29 00:38:46 -0400 |
commit | ab8f11e5f6655861ad4758a7da76b2fc0e0dcc98 (patch) | |
tree | 3833850589c9593f42ba11b9aed589bbc18f28dd /kernel/rcutorture.c | |
parent | 93898fb1a395d2a5a53db238c68036da2f8c64d1 (diff) |
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>
Diffstat (limited to 'kernel/rcutorture.c')
-rw-r--r-- | kernel/rcutorture.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c index 2431d576e9ca..764825c2685c 100644 --- a/kernel/rcutorture.c +++ b/kernel/rcutorture.c | |||
@@ -779,7 +779,8 @@ static int rcu_torture_boost(void *arg) | |||
779 | * interval. Besides, we are running at RT priority, | 779 | * interval. Besides, we are running at RT priority, |
780 | * so delays should be relatively rare. | 780 | * so delays should be relatively rare. |
781 | */ | 781 | */ |
782 | while (oldstarttime == boost_starttime) { | 782 | while (oldstarttime == boost_starttime && |
783 | !kthread_should_stop()) { | ||
783 | if (mutex_trylock(&boost_mutex)) { | 784 | if (mutex_trylock(&boost_mutex)) { |
784 | boost_starttime = jiffies + | 785 | boost_starttime = jiffies + |
785 | test_boost_interval * HZ; | 786 | test_boost_interval * HZ; |