From patchwork Mon Apr 25 13:27:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12825765 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 C12FCC433F5 for ; Mon, 25 Apr 2022 13:27:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 233076B0075; Mon, 25 Apr 2022 09:27:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1CE076B0074; Mon, 25 Apr 2022 09:27:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F01F46B0078; Mon, 25 Apr 2022 09:27:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.27]) by kanga.kvack.org (Postfix) with ESMTP id DCF8B6B0074 for ; Mon, 25 Apr 2022 09:27:05 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id AB78281A29 for ; Mon, 25 Apr 2022 13:27:05 +0000 (UTC) X-FDA: 79395477210.03.76ACED1 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf10.hostedemail.com (Postfix) with ESMTP id CA4E5C0045 for ; Mon, 25 Apr 2022 13:26:57 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Kn5PX0w8Yz1JBjg; Mon, 25 Apr 2022 21:26:08 +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.2375.24; Mon, 25 Apr 2022 21:26:59 +0800 From: Miaohe Lin To: , , CC: , , , , , , , Subject: [PATCH v2 0/4] A few cleanup and fixup patches for migration Date: Mon, 25 Apr 2022 21:27:19 +0800 Message-ID: <20220425132723.34824-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: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: CA4E5C0045 X-Stat-Signature: ykb6xg367xujf6eukbftqhkmxxqez1rf X-Rspam-User: Authentication-Results: imf10.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf10.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com X-HE-Tag: 1650893217-156841 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 few patches to remove unneeded lock page and PageMovable check, reduce the rcu lock duration. Also we fix potential pte_unmap on an not mapped pte. More details can be found in the respective changelogs. Thanks! --- v2: collect Reviewed-by tag make isolate_huge_page consistent with isolate_lru_page add hugetlbfs variant of hugetlb_migration_entry_wait v1: rebase [1] on mainline. [1] https://lore.kernel.org/lkml/20220304093409.25829-2-linmiaohe@huawei.com/T/ --- Miaohe Lin (4): mm/migration: reduce the rcu lock duration mm/migration: remove unneeded lock page and PageMovable check mm/migration: return errno when isolate_huge_page failed mm/migration: fix potential pte_unmap on an not mapped pte include/linux/hugetlb.h | 6 +++--- include/linux/swapops.h | 12 ++++++++---- mm/gup.c | 2 +- mm/hugetlb.c | 15 +++++++-------- mm/memory-failure.c | 2 +- mm/mempolicy.c | 2 +- mm/migrate.c | 39 +++++++++++++++++++++++++-------------- 7 files changed, 46 insertions(+), 32 deletions(-)