From patchwork Wed Sep 2 09:45:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oscar Salvador X-Patchwork-Id: 11750235 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2034313B1 for ; Wed, 2 Sep 2020 09:45:30 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 027EF204FD for ; Wed, 2 Sep 2020 09:45:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 027EF204FD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 4BE036B005C; Wed, 2 Sep 2020 05:45:23 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 41C616B0068; Wed, 2 Sep 2020 05:45:23 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 331E76B0062; Wed, 2 Sep 2020 05:45:23 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0074.hostedemail.com [216.40.44.74]) by kanga.kvack.org (Postfix) with ESMTP id F24456B005A for ; Wed, 2 Sep 2020 05:45:22 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id BA9EF180AD806 for ; Wed, 2 Sep 2020 09:45:22 +0000 (UTC) X-FDA: 77217638484.11.home54_1e11da22709f Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin11.hostedemail.com (Postfix) with ESMTP id 890AA180F8B81 for ; Wed, 2 Sep 2020 09:45:22 +0000 (UTC) X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,osalvador@suse.de,,RULES_HIT:30054,0,RBL:195.135.220.15:@suse.de:.lbl8.mailshell.net-64.100.201.201 62.2.6.2;04yfbrbi3iyomip4wr4d8er56m9fqopubg4tdkuff4p34cx8c6iszzu1jyhr1ji.4iki4r4pwt9zaic99qkh4byutmdwao1hiahhkn413size47gkp9618fm8wfbmto.a-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: home54_1e11da22709f X-Filterd-Recvd-Size: 1685 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf19.hostedemail.com (Postfix) with ESMTP for ; Wed, 2 Sep 2020 09:45:22 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 5AEB3AEAB; Wed, 2 Sep 2020 09:45:20 +0000 (UTC) From: Oscar Salvador To: akpm@linux-foundation.org Cc: naoya.horiguchi@nec.com, mhocko@kernel.org, tony.luck@intel.com, cai@lca.pw, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Oscar Salvador Subject: [PATCH 0/4] HWpoison: further fixes and cleanups Date: Wed, 2 Sep 2020 11:45:06 +0200 Message-Id: <20200902094510.10727-1-osalvador@suse.de> X-Mailer: git-send-email 2.13.7 X-Rspamd-Queue-Id: 890AA180F8B81 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 X-Bogosity: Ham, tests=bogofilter, spamicity=0.021470, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The important bit of this patchset is patch#1, which is a fix to take off HWPoison pages off a buddy freelist since it can lead to us having HWPoison pages back in the game and no one noticing it is handling a HWPoison page. So fix it (we did that already for soft_offline_page [1]). The other patches are clean-ups and not that important, so if anything, consider patch#1 for inclusion. Thanks Oscar Salvador (4): mm,hwpoison: Take free pages off the buddy freelists mm,hwpoison: Refactor madvise_inject_error mm,hwpoison: Drain pcplists before bailing out for non-buddy zero-refcount page mm,hwpoison: Drop unneeded pcplist draining mm/madvise.c | 34 +++++++++++++--------------------- mm/memory-failure.c | 39 +++++++++++++++++++++++++++++++++++---- 2 files changed, 48 insertions(+), 25 deletions(-)