From patchwork Sat Mar 12 07:46:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12778761 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 688B3C433FE for ; Sat, 12 Mar 2022 07:47:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E5D558D0002; Sat, 12 Mar 2022 02:47:09 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id CF4778D0005; Sat, 12 Mar 2022 02:47:09 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 973B38D0002; Sat, 12 Mar 2022 02:47:09 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0206.hostedemail.com [216.40.44.206]) by kanga.kvack.org (Postfix) with ESMTP id 6B9778D0003 for ; Sat, 12 Mar 2022 02:47:09 -0500 (EST) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 16CB397912 for ; Sat, 12 Mar 2022 07:47:09 +0000 (UTC) X-FDA: 79234953378.17.F157A39 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf30.hostedemail.com (Postfix) with ESMTP id E67188001D for ; Sat, 12 Mar 2022 07:47:07 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KFvwL1tqQzBrJW; Sat, 12 Mar 2022 15:45:06 +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, 12 Mar 2022 15:47:03 +0800 From: Miaohe Lin To: , , , CC: , , , , , Subject: [PATCH v2 0/3] A few fixup patches for memory failure Date: Sat, 12 Mar 2022 15:46:10 +0800 Message-ID: <20220312074613.4798-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: E67188001D X-Rspam-User: Authentication-Results: imf30.hostedemail.com; dkim=none; spf=pass (imf30.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: xxh3cd9bkapbhqudhh1bz7ou1756rxdc X-Rspamd-Server: rspam07 X-HE-Tag: 1647071227-235765 X-Bogosity: Ham, tests=bogofilter, spamicity=0.036496, 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 few patches to fix the race with changing page compound page, make non-LRU movable pages unhandlable and so on. More details can be found in the respective changelogs. Thanks! --- 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 (3): mm/memory-failure.c: fix race with changing page compound again mm/memory-failure.c: avoid calling invalidate_inode_page() with unexpected pages mm/memory-failure.c: make non-LRU movable pages unhandlable include/linux/mm.h | 1 + include/ras/ras_event.h | 1 + mm/memory-failure.c | 34 ++++++++++++++++++++++++++-------- 3 files changed, 28 insertions(+), 8 deletions(-)