]> git.baikalelectronics.ru Git - kernel.git/commit
HWPOISON: avoid grabbing the page count multiple times during madvise injection
authorWu Fengguang <fengguang.wu@intel.com>
Wed, 16 Dec 2009 11:19:57 +0000 (12:19 +0100)
committerAndi Kleen <ak@linux.intel.com>
Wed, 16 Dec 2009 11:19:57 +0000 (12:19 +0100)
commited25c465b3a2c57ae86d7ea1a780a091dd366b8f
tree7d25f35cda1f37e30fd21bb2375f2693837d5ec5
parentb8f084311cfc800c0d2b8878341616103192c36d
HWPOISON: avoid grabbing the page count multiple times during madvise injection

If page is double referenced in madvise_hwpoison() and __memory_failure(),
remove_mapping() will fail because it expects page_count=2. Fix it by
not grabbing extra page count in __memory_failure().

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
mm/madvise.c
mm/memory-failure.c