From patchwork Tue Sep 8 07:56:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oscar Salvador X-Patchwork-Id: 11762819 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 E5E3859D for ; Tue, 8 Sep 2020 07:56:39 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C65E82177B for ; Tue, 8 Sep 2020 07:56:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C65E82177B 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 5EC146B0002; Tue, 8 Sep 2020 03:56:37 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 51FC08E0003; Tue, 8 Sep 2020 03:56:37 -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 320F26B0002; Tue, 8 Sep 2020 03:56:37 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0196.hostedemail.com [216.40.44.196]) by kanga.kvack.org (Postfix) with ESMTP id 159C06B005A for ; Tue, 8 Sep 2020 03:56:37 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id D2A623625 for ; Tue, 8 Sep 2020 07:56:36 +0000 (UTC) X-FDA: 77239137192.27.milk23_040351a270d3 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin27.hostedemail.com (Postfix) with ESMTP id AC0303D669 for ; Tue, 8 Sep 2020 07:56:36 +0000 (UTC) X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,osalvador@suse.de,,RULES_HIT:30012:30054,0,RBL:195.135.220.15:@suse.de:.lbl8.mailshell.net-64.100.201.201 62.2.6.2;04yg45hpexy8iqstcc64ex5z9f1ubop6jwfyork4x7jm4skj1yz3s7dyccuk3nn.usj7kzp3cgsahj6aw9mc75qsdh8es6kbbkgki6d83fyr6n4rtk4ad7kcera79bn.o-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:137,LUA_SUMMARY:none X-HE-Tag: milk23_040351a270d3 X-Filterd-Recvd-Size: 1750 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf29.hostedemail.com (Postfix) with ESMTP for ; Tue, 8 Sep 2020 07:56:35 +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 80E01B6CD; Tue, 8 Sep 2020 07:56:35 +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 v2 0/5] HWpoison: further fixes and cleanups Date: Tue, 8 Sep 2020 09:56:21 +0200 Message-Id: <20200908075626.11976-1-osalvador@suse.de> X-Mailer: git-send-email 2.13.7 X-Rspamd-Queue-Id: AC0303D669 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000006, 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 us to having HWPoison pages back in the game without no one noticing it. 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. [1] https://patchwork.kernel.org/cover/11704083/ Thanks Oscar Salvador (5): 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,hwpoison: Remove stale code mm/madvise.c | 34 ++++++++++++------------------ mm/memory-failure.c | 50 +++++++++++++++++++++++++++++++++------------ 2 files changed, 50 insertions(+), 34 deletions(-)