Loading mm/slub.c +2 −2 Original line number Diff line number Diff line Loading @@ -2594,8 +2594,6 @@ static inline int kmem_cache_close(struct kmem_cache *s) */ void kmem_cache_destroy(struct kmem_cache *s) { if (s->flags & SLAB_DESTROY_BY_RCU) rcu_barrier(); down_write(&slub_lock); s->refcount--; if (!s->refcount) { Loading @@ -2606,6 +2604,8 @@ void kmem_cache_destroy(struct kmem_cache *s) "still has objects.\n", s->name, __func__); dump_stack(); } if (s->flags & SLAB_DESTROY_BY_RCU) rcu_barrier(); sysfs_slab_remove(s); } else up_write(&slub_lock); Loading Loading
mm/slub.c +2 −2 Original line number Diff line number Diff line Loading @@ -2594,8 +2594,6 @@ static inline int kmem_cache_close(struct kmem_cache *s) */ void kmem_cache_destroy(struct kmem_cache *s) { if (s->flags & SLAB_DESTROY_BY_RCU) rcu_barrier(); down_write(&slub_lock); s->refcount--; if (!s->refcount) { Loading @@ -2606,6 +2604,8 @@ void kmem_cache_destroy(struct kmem_cache *s) "still has objects.\n", s->name, __func__); dump_stack(); } if (s->flags & SLAB_DESTROY_BY_RCU) rcu_barrier(); sysfs_slab_remove(s); } else up_write(&slub_lock); Loading