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 --
| Andreas Gruenbacher | Re: [AppArmor 39/45] AppArmor: Profile loading and manipulation, pathname matching |
| Alan Cox | Re: [patch 7/8] fdmap v2 - implement sys_socket2 |
| Jens Axboe | Re: regression: CD burning (k3b) went broke |
| Paul E. McKenney | Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures |
git: | |
| KOSAKI Motohiro | [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| David Miller | [GIT]: Networking |
| Alexey Dobriyan | [PATCH 09/33] netns ct: per-netns /proc/net/nf_conntrack, /proc/net/stat/nf_conntr... |
| Gerrit Renker | [PATCH 18/37] dccp: Support for Mandatory options |
