login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
18
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6.26-rc5-mm3
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Daisuke Nishimura <nishimura@...>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>
Cc: Andrew Morton <akpm@...>, Rik van Riel <riel@...>, Lee Schermerhorn <lee.schermerhorn@...>, Kosaki Motohiro <kosaki.motohiro@...>, Nick Piggin <npiggin@...>, <linux-mm@...>, <linux-kernel@...>, <kernel-testers@...>, hugh@veritas.com <hugh@...>
Subject:
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6.26-rc5-mm3
Date: Tuesday, June 17, 2008 - 9:26 pm
On Wed, 18 Jun 2008 10:13:49 +0900, KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
quoted text
> On Tue, 17 Jun 2008 16:35:01 +0900 > Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> wrote: > > > This patch also fixes a race between migrate_entry_wait and > > page_freeze_refs in migrate_page_move_mapping. > > > Ok, let's fix one by one. please add your Signed-off-by if ok. >
Agree. It should be fixed independently. Signed-off-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
quoted text
> This is a fix for page migration under speculative page lookup protocol. > -Kame > == > In speculative page cache lookup protocol, page_count(page) is set to 0 > while radix-tree midification is going on, truncation, migration, etc... > > While page migration, a page fault to page under migration should wait > unlock_page() and migration_entry_wait() waits for the page from its > pte entry. It does get_page() -> wait_on_page_locked() -> put_page() now. > > In page migration, page_freeze_refs() -> page_unfreeze_refs() is called. > > Here, page_unfreeze_refs() expects page_count(page) == 0 and panics > if page_count(page) != 0. To avoid this, we shouldn't touch page_count() > if it is zero. This patch uses page_cache_get_speculative() to avoid > the panic. > > From: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> > Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> > --- > mm/migrate.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > Index: test-2.6.26-rc5-mm3/mm/migrate.c > =================================================================== > --- test-2.6.26-rc5-mm3.orig/mm/migrate.c > +++ test-2.6.26-rc5-mm3/mm/migrate.c > @@ -243,7 +243,8 @@ void migration_entry_wait(struct mm_stru > > page = migration_entry_to_page(entry); > > - get_page(page); > + if (!page_cache_get_speculative()) > + goto out; > pte_unmap_unlock(ptep, ptl); > wait_on_page_locked(page); > put_page(page); >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
2.6.26-rc5-mm3
, Andrew Morton
, (Thu Jun 12, 1:59 am)
Re: 2.6.26-rc5-mm3: BUG large value for HugePages_Rsvd
, Jon Tollefson
, (Thu Jun 19, 12:27 pm)
[RFC] hugetlb reservations -- MAP_PRIVATE fixes for split vm...
, Andy Whitcroft
, (Mon Jun 23, 1:35 pm)
Re: [RFC] hugetlb reservations -- MAP_PRIVATE fixes for spli...
, Jon Tollefson
, (Wed Jun 25, 5:22 pm)
[PATCH 2/2] hugetlb reservations: fix hugetlb MAP_PRIVATE re...
, Andy Whitcroft
, (Mon Jun 23, 1:35 pm)
Re: [PATCH 2/2] hugetlb reservations: fix hugetlb MAP_PRIVAT...
, Mel Gorman
, (Mon Jun 23, 7:08 pm)
[PATCH 1/2] hugetlb reservations: move region tracking earlier
, Andy Whitcroft
, (Mon Jun 23, 1:35 pm)
Re: [PATCH 1/2] hugetlb reservations: move region tracking e...
, Mel Gorman
, (Mon Jun 23, 7:05 pm)
[RFC] hugetlb reservations -- MAP_PRIVATE fixes for split vmas
, Andy Whitcroft
, (Fri Jun 20, 3:17 pm)
Re: [RFC] hugetlb reservations -- MAP_PRIVATE fixes for spli...
, Jon Tollefson
, (Mon Jun 23, 12:04 pm)
[PATCH 1/2] hugetlb reservations: move region tracking earlier
, Andy Whitcroft
, (Fri Jun 20, 3:17 pm)
[PATCH 2/2] hugetlb reservations: fix hugetlb MAP_PRIVATE re...
, Andy Whitcroft
, (Fri Jun 20, 3:17 pm)
Re: [PATCH 2/2] hugetlb reservations: fix hugetlb MAP_PRIVAT...
, Mel Gorman
, (Mon Jun 23, 4:00 am)
Re: [PATCH 2/2] hugetlb reservations: fix hugetlb MAP_PRIVAT...
, Andy Whitcroft
, (Mon Jun 23, 5:53 am)
Re: [PATCH 2/2] hugetlb reservations: fix hugetlb MAP_PRIVAT...
, Mel Gorman
, (Mon Jun 23, 3:33 am)
Re: 2.6.26-rc5-mm3: BUG large value for HugePages_Rsvd
, Andy Whitcroft
, (Thu Jun 19, 1:16 pm)
Re: 2.6.26-rc5-mm3: BUG large value for HugePages_Rsvd
, Jon Tollefson
, (Thu Jun 19, 11:18 pm)
[BUG][PATCH -mm] avoid BUG() in __stop_machine_run()
, Hidehiro Kawai
, (Thu Jun 19, 2:59 am)
Re: [BUG][PATCH -mm] avoid BUG() in __stop_machine_run()
, Rusty Russell
, (Thu Jun 19, 6:12 am)
Re: [BUG][PATCH -mm] avoid BUG() in __stop_machine_run()
, Jeremy Fitzhardinge
, (Thu Jun 19, 11:51 am)
Re: [BUG][PATCH -mm] avoid BUG() in __stop_machine_run()
, Ingo Molnar
, (Fri Jun 20, 9:21 am)
Re: [BUG][PATCH -mm] avoid BUG() in __stop_machine_run()
, Rusty Russell
, (Sun Jun 22, 11:55 pm)
Re: [BUG][PATCH -mm] avoid BUG() in __stop_machine_run()
, Ingo Molnar
, (Mon Jun 23, 5:01 pm)
[PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6.26-r...
, Daisuke Nishimura
, (Tue Jun 17, 3:35 am)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, KAMEZAWA Hiroyuki
, (Tue Jun 17, 9:13 pm)
[PATCH] migration_entry_wait fix.
, KAMEZAWA Hiroyuki
, (Tue Jun 17, 9:54 pm)
Re: [PATCH] migration_entry_wait fix.
, Nick Piggin
, (Wed Jun 18, 1:35 am)
Re: [PATCH] migration_entry_wait fix.
, KAMEZAWA Hiroyuki
, (Wed Jun 18, 2:04 am)
Re: [PATCH] migration_entry_wait fix.
, Nick Piggin
, (Wed Jun 18, 2:42 am)
Re: [PATCH] migration_entry_wait fix.
, KAMEZAWA Hiroyuki
, (Wed Jun 18, 2:52 am)
[PATCH -mm][BUGFIX] migration_entry_wait fix. v2
, KAMEZAWA Hiroyuki
, (Wed Jun 18, 3:29 am)
Re: [PATCH -mm][BUGFIX] migration_entry_wait fix. v2
, Nick Piggin
, (Wed Jun 18, 3:40 am)
Re: [PATCH -mm][BUGFIX] migration_entry_wait fix. v2
, KOSAKI Motohiro
, (Wed Jun 18, 3:26 am)
Re: [PATCH] migration_entry_wait fix.
, KOSAKI Motohiro
, (Wed Jun 18, 1:26 am)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, Daisuke Nishimura
, (Tue Jun 17, 9:26 pm)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, Lee Schermerhorn
, (Tue Jun 17, 1:46 pm)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, Daisuke Nishimura
, (Tue Jun 17, 10:59 pm)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, Hugh Dickins
, (Tue Jun 17, 2:33 pm)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, Lee Schermerhorn
, (Tue Jun 17, 3:28 pm)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, Nick Piggin
, (Wed Jun 18, 1:19 am)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, KOSAKI Motohiro
, (Tue Jun 17, 11:33 am)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, Daisuke Nishimura
, (Tue Jun 17, 9:54 pm)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, Daisuke Nishimura
, (Wed Jun 18, 12:41 am)
[PATCH][-mm] remove redundant page->mapping check
, KOSAKI Motohiro
, (Wed Jun 18, 3:54 am)
Re: [PATCH][RFC] fix kernel BUG at mm/migrate.c:719! in 2.6....
, KAMEZAWA Hiroyuki
, (Wed Jun 18, 12:59 am)
[Bad page] trying to free locked page? (Re: [PATCH][RFC] fix...
, Daisuke Nishimura
, (Tue Jun 17, 3:47 am)
[Experimental][PATCH] putback_lru_page rework
, KAMEZAWA Hiroyuki
, (Wed Jun 18, 5:40 am)
Re: [Experimental][PATCH] putback_lru_page rework
, Lee Schermerhorn
, (Wed Jun 18, 2:21 pm)
Re: [Experimental][PATCH] putback_lru_page rework
, KAMEZAWA Hiroyuki
, (Wed Jun 18, 8:22 pm)
Re: [Experimental][PATCH] putback_lru_page rework
, Lee Schermerhorn
, (Thu Jun 19, 10:45 am)
Re: [Experimental][PATCH] putback_lru_page rework
, KAMEZAWA Hiroyuki
, (Thu Jun 19, 9:13 pm)
Re: [Experimental][PATCH] putback_lru_page rework
, KOSAKI Motohiro
, (Sat Jun 21, 4:39 am)
Re: [Experimental][PATCH] putback_lru_page rework
, Lee Schermerhorn
, (Fri Jun 20, 1:10 pm)
Re: [Experimental][PATCH] putback_lru_page rework
, KOSAKI Motohiro
, (Sat Jun 21, 4:41 am)
Re: [Experimental][PATCH] putback_lru_page rework
, Lee Schermerhorn
, (Fri Jun 20, 4:41 pm)
Re: [Experimental][PATCH] putback_lru_page rework
, KOSAKI Motohiro
, (Sat Jun 21, 4:56 am)
Re: [Experimental][PATCH] putback_lru_page rework
, KAMEZAWA Hiroyuki
, (Sun Jun 22, 8:30 pm)
Re: [Experimental][PATCH] putback_lru_page rework
, KAMEZAWA Hiroyuki
, (Thu Jun 19, 8:47 pm)
Re: Re: [Experimental][PATCH] putback_lru_page rework
,
, (Thu Jun 19, 11:32 am)
Re: Re: [Experimental][PATCH] putback_lru_page rework
, Lee Schermerhorn
, (Fri Jun 20, 12:24 pm)
Re: [Experimental][PATCH] putback_lru_page rework
, Daisuke Nishimura
, (Wed Jun 18, 10:50 am)
Re: [Experimental][PATCH] putback_lru_page rework
, KOSAKI Motohiro
, (Wed Jun 18, 7:36 am)
Re: [Experimental][PATCH] putback_lru_page rework
, KAMEZAWA Hiroyuki
, (Wed Jun 18, 7:55 am)
Re: [Experimental][PATCH] putback_lru_page rework
, Daisuke Nishimura
, (Thu Jun 19, 4:00 am)
Re: [Experimental][PATCH] putback_lru_page rework
, KAMEZAWA Hiroyuki
, (Thu Jun 19, 4:24 am)
Re: [Bad page] trying to free locked page? (Re: [PATCH][RFC]...
, KOSAKI Motohiro
, (Tue Jun 17, 11:34 am)
Re: [Bad page] trying to free locked page? (Re: [PATCH][RFC]...
, Daisuke Nishimura
, (Tue Jun 17, 10:32 pm)
Re: [Bad page] trying to free locked page? (Re: [PATCH][RFC]...
, KOSAKI Motohiro
, (Wed Jun 18, 6:20 am)
Re: [Bad page] trying to free locked page? (Re: [PATCH][RFC]...
, KAMEZAWA Hiroyuki
, (Tue Jun 17, 5:03 am)
Re: [Bad page] trying to free locked page? (Re: [PATCH][RFC]...
, Daisuke Nishimura
, (Tue Jun 17, 5:15 am)
Re: [Bad page] trying to free locked page? (Re: [PATCH][RFC]...
, Lee Schermerhorn
, (Tue Jun 17, 2:29 pm)
Re: [Bad page] trying to free locked page? (Re: [PATCH][RFC]...
, Daisuke Nishimura
, (Tue Jun 17, 10:40 pm)
[PATCH] unevictable mlocked pages: initialize mm member of ...
, Lee Schermerhorn
, (Tue Jun 17, 4:00 pm)
Re: [PATCH] unevictable mlocked pages: initialize mm member...
, KOSAKI Motohiro
, (Tue Jun 17, 11:33 pm)
Re: [Bad page] trying to free locked page? (Re: [PATCH][RFC]...
, KOSAKI Motohiro
, (Tue Jun 17, 5:14 am)
Re: 2.6.26-rc5-mm3
, Byron Bradley
, (Thu Jun 12, 7:32 pm)
Re: 2.6.26-rc5-mm3
, Daniel Walker
, (Wed Jun 18, 1:55 pm)
Re: 2.6.26-rc5-mm3
, Ingo Molnar
, (Thu Jun 19, 5:13 am)
Re: 2.6.26-rc5-mm3
, Daniel Walker
, (Thu Jun 19, 10:39 am)
Re: 2.6.26-rc5-mm3
, Daniel Walker
, (Thu Jun 12, 7:55 pm)
Re: 2.6.26-rc5-mm3
, Byron Bradley
, (Thu Jun 12, 8:04 pm)
[BUG] 2.6.26-rc5-mm3 kernel BUG at mm/filemap.c:575!
, Kamalesh Babulal
, (Thu Jun 12, 4:44 am)
Re: [BUG] 2.6.26-rc5-mm3 kernel BUG at mm/filemap.c:575!
,
, (Fri Jun 13, 12:18 am)
Re: [BUG] 2.6.26-rc5-mm3 kernel BUG at mm/filemap.c:575!
, Andrew Morton
, (Fri Jun 13, 3:16 am)
Re: [BUG] 2.6.26-rc5-mm3 kernel BUG at mm/filemap.c:575!
, Andrew Morton
, (Thu Jun 12, 4:57 am)
Re: [BUG] 2.6.26-rc5-mm3 kernel BUG at mm/filemap.c:575!
, Nick Piggin
, (Thu Jun 12, 7:38 am)
Re: [BUG] 2.6.26-rc5-mm3 kernel BUG at mm/filemap.c:575!
, KAMEZAWA Hiroyuki
, (Thu Jun 12, 8:25 pm)
Re: [BUG] 2.6.26-rc5-mm3 kernel BUG at mm/filemap.c:575!
, KAMEZAWA Hiroyuki
, (Thu Jun 12, 7:20 am)
[PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kernel BU...
, KAMEZAWA Hiroyuki
, (Thu Jun 12, 9:44 pm)
Re: [PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kerne...
, Kamalesh Babulal
, (Sat Jun 14, 9:32 am)
Re: [PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kerne...
,
, (Fri Jun 13, 12:34 am)
Re: [PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kerne...
, Andrew Morton
, (Thu Jun 12, 10:13 pm)
Re: [PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kerne...
, Lee Schermerhorn
, (Fri Jun 13, 11:30 am)
Re: [PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kerne...
, KAMEZAWA Hiroyuki
, (Mon Jun 16, 10:32 pm)
Re: [PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kerne...
, Lee Schermerhorn
, (Tue Jun 17, 11:26 am)
Re: [PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kerne...
, Lee Schermerhorn
, (Mon Jun 16, 10:49 am)
Re: [PATCH] fix double unlock_page() in 2.6.26-rc5-mm3 kerne...
, Kamalesh Babulal
, (Sat Jun 14, 11:59 pm)
2.6.26-rc5-mm3: kernel BUG at mm/vmscan.c:510
, Alexey Dobriyan
, (Thu Jun 12, 3:58 am)
Re: 2.6.26-rc5-mm3: kernel BUG at mm/vmscan.c:510
, Andrew Morton
, (Thu Jun 12, 4:22 am)
Re: 2.6.26-rc5-mm3: kernel BUG at mm/vmscan.c:510
, Alexey Dobriyan
, (Thu Jun 12, 4:23 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Andrew Morton
-mm merge plans for 2.6.23
Greg Kroah-Hartman
[PATCH 006/196] Chinese: add translation of oops-tracing.txt
Greg KH
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Roland Dreier
Re: Integration of SCST in the mainstream Linux kernel
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
Linus Torvalds
Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49
Herbert Xu
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
619 guests
online.
Online users
portcab3
bhallnc
centralitapana
Syndicate