On Fri, 2008-04-11 at 22:17 +0900, KAMEZAWA Hiroyuki wrote:My bad, sorry. Fixed and pushed out. Pekka From: Pekka Enberg <penberg@cs.helsinki.fi> Date: Fri, 11 Apr 2008 17:17:43 +0300 Subject: [PATCH] slub: add missing slab_unlock() to __kmem_cache_shrink() If page is not kickable, remember to slab_unlock() before continuing the loop. Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> --- mm/slub.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index 4b694a7..f09f1fb 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2926,8 +2926,10 @@ static unsigned long __kmem_cache_shrink(struct kmem_cache *s, int node, continue; if (page->inuse) { - if (!SlabKickable(page)) + if (!SlabKickable(page)) { + slab_unlock(page); continue; + } if (page->inuse * 100 >= s->defrag_ratio * page->objects) { -- 1.5.2.5 --
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| DervishD | ext2 on flash memory |
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| Rob Landley | Re: [RFC/PATCH] Documentation of kernel messages |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Joakim Tjernlund | ucc_geth: nf_conntrack: table full, dropping packet. |
