]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mem-hwpoison: fix page refcount around isolate_lru_page()
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Wed, 25 May 2011 00:12:20 +0000 (17:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 May 2011 15:39:23 +0000 (08:39 -0700)
commitbd486285f24ac2fd1ff64688fb0729712c5712c4
treed0fde80eb5c05893ba3b624b8219436b3efb274a
parent700c2a46e88265326764197d5b8842490bae5569
mem-hwpoison: fix page refcount around isolate_lru_page()

Drop first page reference only after calling isolate_lru_page() to keep
page stable reference while isolating.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Lee Schermerhorn <lee.schermerhorn@hp.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory-failure.c