diff options
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -3119,16 +3119,7 @@ static void free_block(struct kmem_cache *cachep, void **objpp, int nr_objects, | |||
3119 | if (slabp->inuse == 0) { | 3119 | if (slabp->inuse == 0) { |
3120 | if (l3->free_objects > l3->free_limit) { | 3120 | if (l3->free_objects > l3->free_limit) { |
3121 | l3->free_objects -= cachep->num; | 3121 | l3->free_objects -= cachep->num; |
3122 | /* | ||
3123 | * It is safe to drop the lock. The slab is | ||
3124 | * no longer linked to the cache. cachep | ||
3125 | * cannot disappear - we are using it and | ||
3126 | * all destruction of caches must be | ||
3127 | * serialized properly by the user. | ||
3128 | */ | ||
3129 | spin_unlock(&l3->list_lock); | ||
3130 | slab_destroy(cachep, slabp); | 3122 | slab_destroy(cachep, slabp); |
3131 | spin_lock(&l3->list_lock); | ||
3132 | } else { | 3123 | } else { |
3133 | list_add(&slabp->list, &l3->slabs_free); | 3124 | list_add(&slabp->list, &l3->slabs_free); |
3134 | } | 3125 | } |