diff options
author | Paul E. McKenney <paul.mckenney@linaro.org> | 2011-03-30 12:10:44 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2011-05-06 02:16:57 -0400 |
commit | 561190e3b3db372403fb6a327b0121b4cae1b87e (patch) | |
tree | 41778e9452679853fd873bcb5c776d0fc2327c71 /kernel/rcutorture.c | |
parent | b0c9d7ff2793502650ad987c3f237d5fe5587a1e (diff) |
rcu: mark rcutorture boosting callback as being on-stack
The CONFIG_DEBUG_OBJECTS_RCU_HEAD facility requires that on-stack RCU
callbacks be flagged explicitly to debug-objects using the
init_rcu_head_on_stack() and destroy_rcu_head_on_stack() functions.
This commit applies those functions to the rcutorture code that tests
RCU priority boosting.
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcutorture.c')
-rw-r--r-- | kernel/rcutorture.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c index c2f58ec24751..2e138db03382 100644 --- a/kernel/rcutorture.c +++ b/kernel/rcutorture.c | |||
@@ -749,6 +749,7 @@ static int rcu_torture_boost(void *arg) | |||
749 | n_rcu_torture_boost_rterror++; | 749 | n_rcu_torture_boost_rterror++; |
750 | } | 750 | } |
751 | 751 | ||
752 | init_rcu_head_on_stack(&rbi.rcu); | ||
752 | /* Each pass through the following loop does one boost-test cycle. */ | 753 | /* Each pass through the following loop does one boost-test cycle. */ |
753 | do { | 754 | do { |
754 | /* Wait for the next test interval. */ | 755 | /* Wait for the next test interval. */ |
@@ -808,6 +809,7 @@ checkwait: rcu_stutter_wait("rcu_torture_boost"); | |||
808 | 809 | ||
809 | /* Clean up and exit. */ | 810 | /* Clean up and exit. */ |
810 | VERBOSE_PRINTK_STRING("rcu_torture_boost task stopping"); | 811 | VERBOSE_PRINTK_STRING("rcu_torture_boost task stopping"); |
812 | destroy_rcu_head_on_stack(&rbi.rcu); | ||
811 | rcutorture_shutdown_absorb("rcu_torture_boost"); | 813 | rcutorture_shutdown_absorb("rcu_torture_boost"); |
812 | while (!kthread_should_stop() || rbi.inflight) | 814 | while (!kthread_should_stop() || rbi.inflight) |
813 | schedule_timeout_uninterruptible(1); | 815 | schedule_timeout_uninterruptible(1); |