login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
18
Re: [PATCH] migration_entry_wait fix.
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>
To: Nick Piggin <nickpiggin@...>
Cc: Daisuke Nishimura <nishimura@...>, 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] migration_entry_wait fix.
Date: Wednesday, June 18, 2008 - 2:52 am
On Wed, 18 Jun 2008 16:42:37 +1000 Nick Piggin <nickpiggin@yahoo.com.au> wrote:
quoted text
> > (This fix is not related to lock_page() problem.) > > > > If I read your advice correctly, we shouldn't use lock_page() here. > > > > Before speculative page cache, page_table_entry of a page under migration > > has a pte entry which encodes pfn as special pte entry. and wait for the > > end of page migration by lock_page(). > > What I don't think I understand, is how we can have a page in the > page tables (and with the ptl held) but with a zero refcount... Oh, > it's not actually a page but a migration entry! I'm not quite so > familiar with that code. > > Hmm, so we might possibly see a page there that has a zero refcount > due to page_freeze_refs? In which case, I think the direction of you > fix is good. Sorry for my misunderstanding the problem, and thank > you for fixing up my code! > > I would ask you to use get_page_unless_zero rather than > page_cache_get_speculative(), because it's not exactly a speculative > reference -- a speculative reference is one where we elevate _count > and then must recheck that the page we have is correct. >
ok.
quoted text
> Also, please add a comment. It would really be nicer to hide this > transiently-frozen state away from migration_entry_wait, but I can't > see any lock that would easily solve it. >
ok, will adds comments. Thanks, -Kame --
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
:
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
Andrew Morton
Re: PCI probing changes
Bart Van Assche
Re: Integration of SCST in the mainstream Linux kernel
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
Jeff Chua
Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
7 users
and
952 guests
online.
Online users
links103
pavan6754
zeekec
puntmuts
rollercoaster
weddingvideo
margaretrake
Syndicate