diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-05-10 20:12:17 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-05-11 19:10:47 -0400 |
commit | 72d5a9f7a9542f88397558c65bcfc3b115a65e34 (patch) | |
tree | e46d3ad1948de45b9641d1a8b88f88bfb3809007 /kernel/rcutree_plugin.h | |
parent | 4376030a54860dedab9d848dfa7cc700a6025c0b (diff) |
rcu: remove all rcu head initializations, except on_stack initializations
Remove all rcu head inits. We don't care about the RCU head state before passing
it to call_rcu() anyway. Only leave the "on_stack" variants so debugobjects can
keep track of objects on stack.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutree_plugin.h')
-rw-r--r-- | kernel/rcutree_plugin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h index ac7d80fa895c..0e4f420245d9 100644 --- a/kernel/rcutree_plugin.h +++ b/kernel/rcutree_plugin.h | |||
@@ -557,11 +557,13 @@ void synchronize_rcu(void) | |||
557 | if (!rcu_scheduler_active) | 557 | if (!rcu_scheduler_active) |
558 | return; | 558 | return; |
559 | 559 | ||
560 | init_rcu_head_on_stack(&rcu.head); | ||
560 | init_completion(&rcu.completion); | 561 | init_completion(&rcu.completion); |
561 | /* Will wake me after RCU finished. */ | 562 | /* Will wake me after RCU finished. */ |
562 | call_rcu(&rcu.head, wakeme_after_rcu); | 563 | call_rcu(&rcu.head, wakeme_after_rcu); |
563 | /* Wait for it. */ | 564 | /* Wait for it. */ |
564 | wait_for_completion(&rcu.completion); | 565 | wait_for_completion(&rcu.completion); |
566 | destroy_rcu_head_on_stack(&rcu.head); | ||
565 | } | 567 | } |
566 | EXPORT_SYMBOL_GPL(synchronize_rcu); | 568 | EXPORT_SYMBOL_GPL(synchronize_rcu); |
567 | 569 | ||