mmhwpoison-inject-dont-pin-for-hwpoison_filter.patch removed from -mm tree
The patch titled
Subject: mm,hwpoison-inject: don't pin for hwpoison_filter
has been removed from the -mm tree. Its filename was
mmhwpoison-inject-dont-pin-for-hwpoison_filter.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Naoya Horiguchi <[email protected]>
Subject: mm,hwpoison-inject: don't pin for hwpoison_filter
Another memory error injection interface debugfs:hwpoison/corrupt-pfn also takes bogus refcount for hwpoison_filter(). It's justified because this does a coarse filter, expecting that memory_failure() redoes the check for sure.
Signed-off-by Naoya Horiguchi <[email protected]>
Signed-off-by Oscar Salvador <[email protected]>
Cc "Aneesh Kumar K.V" <[email protected]>
Cc Aneesh Kumar K.V <[email protected]>
Cc Aristeu Rozanski <[email protected]>
Cc Dave Hansen <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Dmitry Yakunin <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Mike Kravetz <[email protected]>
Cc Oscar Salvador <[email protected]>
Cc Qian Cai <[email protected]>
Cc Tony Luck <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/hwpoison-inject.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-)
mm/hwpoison-inject.c renamed from mm/hwpoison-inject.c~mmhwpoison-inject-dont-pin-for-hwpoison_filter +5 -13
@@ -26,11 +26,6 @@ static int hwpoison_inject(void *data, u p =pfn_to_page (pfn); hpage =compound_head (p); -/* -* This implies unable to support free buddy pages. -*/ -if (!get_hwpoison_page (p)) -return 0 ;if (!hwpoison_filter_enable) goto inject;
@@ -40,23 +35,20 @@ static int hwpoison_inject(void *data, u* This implies unable to support non-LRU pages. */ if (!PageLRU (hpage) && !PageHuge (p)) - goto put_out; +return 0 ;/* -* do a racy check with elevated page count, to make sure PG_hwpoison -* will only be set for the targeted owner (or on a free page). +* do a racy check to make sure PG_hwpoison will only be set for +* the targeted owner (or on a free page). * memory_failure() will redo the check reliably inside page lock. */ err =hwpoison_filter (hpage);if (err) - goto put_out; +return 0 ; inject:pr_info ("Injecting memory failure at pfn %#lx\n" , pfn); -return memory_failure (pfn,MF_COUNT_INCREASED ); -put_out: -put_hwpoison_page (p); -return 0 ; +return memory_failure (pfn,0 ); }static int hwpoison_unpoison (void *data,u64 val)
_
Patches currently in -mm which might be from [email protected] are