From patchwork Fri Dec 4 10:25:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oscar Salvador X-Patchwork-Id: 11951437 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=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 7D0EFC4361A for ; Fri, 4 Dec 2020 10:26:09 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E9FF42251D for ; Fri, 4 Dec 2020 10:26:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E9FF42251D 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 0C51D6B0036; Fri, 4 Dec 2020 05:26:07 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 0756B6B0068; Fri, 4 Dec 2020 05:26:07 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E9F666B006E; Fri, 4 Dec 2020 05:26:06 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0204.hostedemail.com [216.40.44.204]) by kanga.kvack.org (Postfix) with ESMTP id C0A016B0036 for ; Fri, 4 Dec 2020 05:26:06 -0500 (EST) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 83F5A181AEF21 for ; Fri, 4 Dec 2020 10:26:06 +0000 (UTC) X-FDA: 77555219532.12.queen47_3502be4273c3 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin12.hostedemail.com (Postfix) with ESMTP id 591C61800E91D for ; Fri, 4 Dec 2020 10:26:06 +0000 (UTC) X-HE-Tag: queen47_3502be4273c3 X-Filterd-Recvd-Size: 1768 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf31.hostedemail.com (Postfix) with ESMTP for ; Fri, 4 Dec 2020 10:26:05 +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 824F5ACB5; Fri, 4 Dec 2020 10:26:04 +0000 (UTC) From: Oscar Salvador To: akpm@linux-foundation.org Cc: n-horiguchi@ah.jp.nec.com, vbabka@suse.cz, qcai@redhat.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Oscar Salvador Subject: [PATCH v2 0/3] HWPoison: Refactor get page interface Date: Fri, 4 Dec 2020 11:25:55 +0100 Message-Id: <20201204102558.31607-1-osalvador@suse.de> X-Mailer: git-send-email 2.13.7 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: Ok, this is v2. I left out the MF_COUNT_INCREASED changes as we need to have the pages pinned when coming from madvise, otherwise we might be messing with a page which belongs to someone else. I ran several tests [1] [2] to make sure nothing is broken. @Andrew: Please, remove [3] from mmotm and linux-next and replace it with this one. Thanks [1] https://github.com/Naoya-Horiguchi/mm_regression [2] https://e.coding.net/cailca/linux/mm [3] https://patchwork.kernel.org/project/linux-mm/cover/20201119105716.5962-1-osalvador@suse.de/ V1 -> V2: - Adressed feedback from Vlastimil - Add Acked-by from Vlastimil Oscar Salvador (3): mm,hwpoison: Refactor get_any_page mm,hwpoison: Disable pcplists before grabbing a refcount mm,hwpoison: Remove drain_all_pages from shake_page mm/memory-failure.c | 168 +++++++++++++++++++------------------------- 1 file changed, 74 insertions(+), 94 deletions(-)