was: Re: [Bad page] trying to free locked page? (Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6.26-rc5-mm3) On Tue, 2008-06-17 at 14:29 -0400, Lee Schermerhorn wrote:<snip> This [freeing of mlocked pages] also occurs in unpatched 26-rc5-mm3. Fixed by the following: PATCH: fix munlock page table walk - now requires 'mm' Against 2.6.26-rc5-mm3. Incremental fix for: mlock-mlocked-pages-are-unevictable-fix.patch Initialize the 'mm' member of the mm_walk structure, else the page table walk doesn't occur, and mlocked pages will not be munlocked. This is visible in the vmstats: noreclaim_pgs_munlocked - should equal noreclaim_pgs_mlocked less (nr_mlock + noreclaim_pgs_cleared), but is always zero [munlock_vma_page() never called] noreclaim_pgs_mlockfreed - should be zero [for debug only], but == noreclaim_pgs_mlocked - (nr_mlock + noreclaim_pgs_cleared) Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com> mm/mlock.c | 2 ++ 1 file changed, 2 insertions(+) Index: linux-2.6.26-rc5-mm3/mm/mlock.c =================================================================== --- linux-2.6.26-rc5-mm3.orig/mm/mlock.c 2008-06-17 15:20:57.000000000 -0400 +++ linux-2.6.26-rc5-mm3/mm/mlock.c 2008-06-17 15:23:17.000000000 -0400 @@ -318,6 +318,8 @@ static void __munlock_vma_pages_range(st VM_BUG_ON(start < vma->vm_start); VM_BUG_ON(end > vma->vm_end); + munlock_page_walk.mm = mm; + lru_add_drain_all(); /* push cached pages to LRU */ walk_page_range(start, end, &munlock_page_walk); lru_add_drain_all(); /* to update stats */ --
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Arjan van de Ven | Re: Linux 2.6.27-rc8 |
git: | |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Jeff Garzik | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
