diff options
author | Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> | 2014-02-10 22:25:50 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-22 21:32:24 (GMT) |
commit | 4ee4d7ae04c4996b3dbd02b5990927432c7eddec (patch) | |
tree | aa8ac4152ca75991ac1ae04730b1ca80ad8695a2 /Documentation/hwmon/lm63 | |
parent | b030653420504093cef2be358449f34934635ed9 (diff) | |
download | linux-fsl-qoriq-4ee4d7ae04c4996b3dbd02b5990927432c7eddec.tar.xz |
mm/memory-failure.c: move refcount only in !MF_COUNT_INCREASED
commit 8d547ff4ac5927245e0833ac18528f939da0ee0e upstream.
mce-test detected a test failure when injecting error to a thp tail
page. This is because we take page refcount of the tail page in
madvise_hwpoison() while the fix in commit a3e0f9e47d5e
("mm/memory-failure.c: transfer page count from head page to tail page
after split thp") assumes that we always take refcount on the head page.
When a real memory error happens we take refcount on the head page where
memory_failure() is called without MF_COUNT_INCREASED set, so it seems
to me that testing memory error on thp tail page using madvise makes
little sense.
This patch cancels moving refcount in !MF_COUNT_INCREASED for valid
testing.
[akpm@linux-foundation.org: s/&&/&/]
Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Cc: Chen Gong <gong.chen@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/hwmon/lm63')
0 files changed, 0 insertions, 0 deletions