From patchwork Sun Mar 20 05:13:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12786137 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D012C433EF for ; Sat, 19 Mar 2022 08:38:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8A9128D0002; Sat, 19 Mar 2022 04:38:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 58A008D0006; Sat, 19 Mar 2022 04:38:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 278C58D0001; Sat, 19 Mar 2022 04:38:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0100.hostedemail.com [216.40.44.100]) by kanga.kvack.org (Postfix) with ESMTP id 0940B8D0003 for ; Sat, 19 Mar 2022 04:38:18 -0400 (EDT) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id A7D1D182739E9 for ; Sat, 19 Mar 2022 08:38:17 +0000 (UTC) X-FDA: 79260483834.24.05B9B5A Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf11.hostedemail.com (Postfix) with ESMTP id 97F0F4000B for ; Sat, 19 Mar 2022 08:38:16 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KLDkf1tpXzfYxR; Sat, 19 Mar 2022 16:36:42 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Sat, 19 Mar 2022 16:38:12 +0800 From: Miaohe Lin To: , , , , CC: , , Subject: [PATCH v4 0/2] A few fixup patches for memory failure Date: Sun, 20 Mar 2022 13:13:32 +0800 Message-ID: <20220320051334.44502-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 97F0F4000B X-Rspam-User: Authentication-Results: imf11.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf11.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com X-Stat-Signature: ft698k8dwcywjzffufknrr51eswcoyox X-Rspamd-Server: rspam04 X-HE-Tag: 1647679096-542096 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: Hi everyone, This series contains a patch to avoid calling invalidate_inode_page() with unexpected pages and another one to make non-LRU movable pages unhandlable. More details can be found in the respective changelogs. Thanks! --- v3->v4: fix typo and drop "bool movable" per David. Thanks David. v2->v3: drop patch "mm/memory-failure.c: fix race with changing page compound again" collect reviewed-by and acked-by tag fix stale commit id in the commit log v1->v2: drop "mm/memory-failure.c: fix wrong user reference report" make non-LRU movable pages unhandlable fix confusing commit log and introduce MF_MSG_DIFFERENT_PAGE_SIZE Many thanks Naoya, Mike and Yang Shi for review! --- Miaohe Lin (2): mm/memory-failure.c: avoid calling invalidate_inode_page() with unexpected pages mm/memory-failure.c: make non-LRU movable pages unhandlable mm/memory-failure.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-)