diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-05-10 20:14:24 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-06-14 19:37:26 -0400 |
commit | 875352c94224c88f5aa28cb77206f993bd31b7a2 (patch) | |
tree | 945688f1860b157a2f09a2d8ef1e2ec5b91b18a3 /mm/slob.c | |
parent | b97181f24212f4c29197890ce1b2b9100bcc184d (diff) |
mm: remove all rcu head 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: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/slob.c')
-rw-r--r-- | mm/slob.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -639,7 +639,6 @@ void kmem_cache_free(struct kmem_cache *c, void *b) | |||
639 | if (unlikely(c->flags & SLAB_DESTROY_BY_RCU)) { | 639 | if (unlikely(c->flags & SLAB_DESTROY_BY_RCU)) { |
640 | struct slob_rcu *slob_rcu; | 640 | struct slob_rcu *slob_rcu; |
641 | slob_rcu = b + (c->size - sizeof(struct slob_rcu)); | 641 | slob_rcu = b + (c->size - sizeof(struct slob_rcu)); |
642 | INIT_RCU_HEAD(&slob_rcu->head); | ||
643 | slob_rcu->size = c->size; | 642 | slob_rcu->size = c->size; |
644 | call_rcu(&slob_rcu->head, kmem_rcu_free); | 643 | call_rcu(&slob_rcu->head, kmem_rcu_free); |
645 | } else { | 644 | } else { |