From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7363FC2BBD1 for ; Thu, 17 Sep 2020 08:27:56 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0500620770 for ; Thu, 17 Sep 2020 08:27:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0500620770 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 918976B005A; Thu, 17 Sep 2020 04:27:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8C7136B005C; Thu, 17 Sep 2020 04:27:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 78F046B005D; Thu, 17 Sep 2020 04:27:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0195.hostedemail.com [216.40.44.195]) by kanga.kvack.org (Postfix) with ESMTP id 6287C6B005A for ; Thu, 17 Sep 2020 04:27:55 -0400 (EDT) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 24C5D2C94 for ; Thu, 17 Sep 2020 08:27:55 +0000 (UTC) X-FDA: 77271875310.04.pet39_630a49127121 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin04.hostedemail.com (Postfix) with ESMTP id E7200800CE6E for ; Thu, 17 Sep 2020 08:27:54 +0000 (UTC) X-HE-Tag: pet39_630a49127121 X-Filterd-Recvd-Size: 2142 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf17.hostedemail.com (Postfix) with ESMTP for ; Thu, 17 Sep 2020 08:27:54 +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 69645B206; Thu, 17 Sep 2020 08:28:25 +0000 (UTC) From: Oscar Salvador To: akpm@linux-foundation.org Cc: aris@ruivo.org, 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 v4 0/7] HWpoison: further fixes and cleanups Date: Thu, 17 Sep 2020 10:10:42 +0200 Message-Id: <20200917081049.27428-1-osalvador@suse.de> X-Mailer: git-send-email 2.13.7 X-Rspamd-Queue-Id: E7200800CE6E X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This patchset includes some fixups (patch#1,patch#2 and patch#3) and some cleanups (patch#4-7). Patch#1 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]). Patch#2 is fixing a rebasing problem that made the call to page_handle_poison from _soft_offline_page set the wrong value for hugepage_or_freepage. [2] Patch#3 is not really a fixup, but tries to re-handle a page in case it was allocated under us. [1] https://patchwork.kernel.org/cover/11704083/ [2] https://patchwork.kernel.org/comment/23619775/ Thanks Oscar Salvador (7): mm,hwpoison: take free pages off the buddy freelists mm,hwpoison: Do not set hugepage_or_freepage unconditionally mm,hwpoison: Try to narrow window race for free pages 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 | 36 +++++++++++---------------- mm/memory-failure.c | 59 +++++++++++++++++++++++++++++++++------------ 2 files changed, 58 insertions(+), 37 deletions(-) -- 2.26.2