From 8d9cdd099226e229196707c55991344ca0b944db Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Thu, 13 Jul 2006 09:12:21 +0200 Subject: [PATCH] --- yaml --- r: 32531 b: refs/heads/master c: fc818301a8a39fedd7f0a71f878f29130c72193d h: refs/heads/master i: 32529: 2927f5cc0f3587dcc13f2844af0191d43ee15e21 32527: bbcc438c596cd643052884b4995d99b44e3370b7 v: v3 --- [refs] | 2 +- trunk/mm/slab.c | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/[refs] b/[refs] index 50c520b35280..24bcdf77f66a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3e705f279a942471b258b1c7a9e54aa8ff36b89f +refs/heads/master: fc818301a8a39fedd7f0a71f878f29130c72193d diff --git a/trunk/mm/slab.c b/trunk/mm/slab.c index 5a57cda7490d..0f20843beffd 100644 --- a/trunk/mm/slab.c +++ b/trunk/mm/slab.c @@ -3119,16 +3119,7 @@ static void free_block(struct kmem_cache *cachep, void **objpp, int nr_objects, if (slabp->inuse == 0) { if (l3->free_objects > l3->free_limit) { l3->free_objects -= cachep->num; - /* - * It is safe to drop the lock. The slab is - * no longer linked to the cache. cachep - * cannot disappear - we are using it and - * all destruction of caches must be - * serialized properly by the user. - */ - spin_unlock(&l3->list_lock); slab_destroy(cachep, slabp); - spin_lock(&l3->list_lock); } else { list_add(&slabp->list, &l3->slabs_free); }