From patchwork Fri Mar 18 07:39:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12783878 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 1AE0EC4332F for ; Thu, 17 Mar 2022 11:04:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 15CBC6B0072; Thu, 17 Mar 2022 07:04:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 10D6E8D0002; Thu, 17 Mar 2022 07:04:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EBCEE8D0001; Thu, 17 Mar 2022 07:04:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.28]) by kanga.kvack.org (Postfix) with ESMTP id DBD116B0072 for ; Thu, 17 Mar 2022 07:04:28 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id B388C23323 for ; Thu, 17 Mar 2022 11:04:28 +0000 (UTC) X-FDA: 79253594616.06.4CC1647 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf26.hostedemail.com (Postfix) with ESMTP id 9875314000F for ; Thu, 17 Mar 2022 11:04:26 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KK43d04KczCqwq; Thu, 17 Mar 2022 19:02:21 +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; Thu, 17 Mar 2022 19:04:22 +0800 From: Miaohe Lin To: , , , CC: , , Subject: [PATCH v3 0/2] A few fixup patches for memory failure Date: Fri, 18 Mar 2022 15:39:43 +0800 Message-ID: <20220318073945.62164-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: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 9875314000F X-Rspam-User: Authentication-Results: imf26.hostedemail.com; dkim=none; spf=pass (imf26.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Stat-Signature: byctp1mr9uc1zhfqe9h1gws8hw6uby8h X-Rspamd-Server: rspam07 X-HE-Tag: 1647515066-314366 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! --- 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 | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-)