Prev: [PATCH RFC tip/core/rcu 09/11] selinux: remove all rcu head initializations
Next: [PATCH RFC tip/core/rcu 04/11] powerpc: remove all rcu head initializations
From: Paul E. McKenney on 11 May 2010 19:40 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(a)efficios.com> Signed-off-by: Paul E. McKenney <paulmck(a)linux.vnet.ibm.com> Cc: Cc: Christoph Lameter <cl(a)linux-foundation.org> Cc: Pekka Enberg <penberg(a)cs.helsinki.fi> Cc: Matt Mackall <mpm(a)selenic.com> Cc: Andrew Morton <akpm(a)linux-foundation.org> --- mm/backing-dev.c | 1 - mm/slob.c | 1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 707d0dc..f03d8d6 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c @@ -663,7 +663,6 @@ int bdi_init(struct backing_dev_info *bdi) bdi->max_ratio = 100; bdi->max_prop_frac = PROP_FRAC_BASE; spin_lock_init(&bdi->wb_lock); - INIT_RCU_HEAD(&bdi->rcu_head); INIT_LIST_HEAD(&bdi->bdi_list); INIT_LIST_HEAD(&bdi->wb_list); INIT_LIST_HEAD(&bdi->work_list); diff --git a/mm/slob.c b/mm/slob.c index 837ebd6..6de238d 100644 --- a/mm/slob.c +++ b/mm/slob.c @@ -647,7 +647,6 @@ void kmem_cache_free(struct kmem_cache *c, void *b) if (unlikely(c->flags & SLAB_DESTROY_BY_RCU)) { struct slob_rcu *slob_rcu; slob_rcu = b + (c->size - sizeof(struct slob_rcu)); - INIT_RCU_HEAD(&slob_rcu->head); slob_rcu->size = c->size; call_rcu(&slob_rcu->head, kmem_rcu_free); } else { -- 1.7.0.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |