linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] filemap: Remove PageHWPoison check from next_uptodate_page()
@ 2021-11-20 17:44 Matthew Wilcox (Oracle)
  2021-11-21 23:35 ` HORIGUCHI NAOYA(堀口 直也)
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Matthew Wilcox (Oracle) @ 2021-11-20 17:44 UTC (permalink / raw)
  To: Yang Shi, Naoya Horiguchi, Kirill A . Shutemov, Andrew Morton,
	linux-mm, Hugh Dickins
  Cc: Matthew Wilcox (Oracle)

Pages are individually marked as suffering from hardware poisoning.
Checking that the head page is not hardware poisoned doesn't make
sense; we might be after a subpage.  We check each page individually
before we use it, so this was an optimisation gone wrong.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
 mm/filemap.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/mm/filemap.c b/mm/filemap.c
index 0b6f996108b4..65973204112d 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -3239,8 +3239,6 @@ static struct page *next_uptodate_page(struct page *page,
 			goto skip;
 		if (!PageUptodate(page) || PageReadahead(page))
 			goto skip;
-		if (PageHWPoison(page))
-			goto skip;
 		if (!trylock_page(page))
 			goto skip;
 		if (page->mapping != mapping)
-- 
2.33.0



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-11-25 14:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-20 17:44 [PATCH] filemap: Remove PageHWPoison check from next_uptodate_page() Matthew Wilcox (Oracle)
2021-11-21 23:35 ` HORIGUCHI NAOYA(堀口 直也)
2021-11-22 19:28 ` Yang Shi
2021-11-24  0:11   ` HORIGUCHI NAOYA(堀口 直也)
2021-11-24  0:32     ` Yang Shi
2021-11-24  0:57       ` Yang Shi
2021-11-24  3:24 ` Andrew Morton
2021-11-25 14:51   ` Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox