From patchwork Thu Jul 25 01:16:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13741487 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 424ADC3DA61 for ; Thu, 25 Jul 2024 01:16:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 902D86B0085; Wed, 24 Jul 2024 21:16:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8A1D16B008C; Wed, 24 Jul 2024 21:16:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 719E06B0089; Wed, 24 Jul 2024 21:16:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 4F6D16B0083 for ; Wed, 24 Jul 2024 21:16:58 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id EF41CA4C36 for ; Thu, 25 Jul 2024 01:16:57 +0000 (UTC) X-FDA: 82376510874.16.E2FB22C Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf09.hostedemail.com (Postfix) with ESMTP id D91ED140004 for ; Thu, 25 Jul 2024 01:16:55 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf09.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1721870169; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=QUBIOkjT2wxrj/o50ihG++pDVmxIqgjRVDSH631O/Vw=; b=kPn/ip6WCFg90jLjMPipgJ5zximi09cOpazmVfFp9UgNuzFde7nscFYxe3TdTnBgNjyPTD ERgMRWP1K5QBhx67jTl8wr8DJrmHtxdQ87HNh+udYpmS5l3S6nMuLTvV84u1p02cEPddNH nUbvJ2upLII2RThhnYhZ3pWqgJ7PLlI= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1721870169; a=rsa-sha256; cv=none; b=P0qZvSEjdcVv3Z3cxo25QOUh3E9XmvRsguho5takT5i7d8lA4WD3zi7ITAx2SoSrVlpHJr /ldJYc3gELewqJ6fYGnHrbfnDuJzL1n4T2mwUIWz9/Q4R+DxscvMu2d3ijy6FsdxGewx/k 5aY1iDhVYSrmWDZWmJnWmF7Npt6KDoY= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf09.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com Received: from mail.maildlp.com (unknown [172.19.88.194]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4WTtC340yrzyN2x; Thu, 25 Jul 2024 09:11:59 +0800 (CST) Received: from dggpemf100008.china.huawei.com (unknown [7.185.36.138]) by mail.maildlp.com (Postfix) with ESMTPS id CCBE9140FA0; Thu, 25 Jul 2024 09:16:50 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemf100008.china.huawei.com (7.185.36.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 25 Jul 2024 09:16:50 +0800 From: Kefeng Wang To: Andrew Morton CC: David Hildenbrand , Oscar Salvador , Miaohe Lin , Naoya Horiguchi , , Kefeng Wang Subject: [PATCH 0/4] mm: memory_hotplug: improve do_migrate_range() Date: Thu, 25 Jul 2024 09:16:43 +0800 Message-ID: <20240725011647.1306045-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemf100008.china.huawei.com (7.185.36.138) X-Rspamd-Queue-Id: D91ED140004 X-Stat-Signature: ids6zewpdpt5iu8ugsh3wzs865sxdfwq X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1721870215-535952 X-HE-Meta: U2FsdGVkX19wyRFnusYHYbLGgu3HuaoU/Odz3m2WbEFEFPSXMYdiP9QGnbmJ6RA8+O5yYtN7076XanVzSJpWG8ZlyKzTzAUjF7lFecihkZR3r0rd1otTjPi3QBRsU36KJCjc1q008K/Vl5wuJTDYXeE0Zj0T1Y30HUdneFMhOQP/2hp1lhVZDapWwsv9psnhliSB+M7PWbr0E5R4xEfhb5GXvWnQb/CWaJz9PAqgaOyPcUUgXtPMYjHWFAyxoKlUU/Im0xi06fgwhkP0A5mWfHj6DaHWXa+3W4NsYICjaTWJWdVzPPwVebdEUEEtfnfmfNAjIibTVcgqQIBUOG8KAH/bweCjIIPEnBb87b8X8hbMnf3ewK+Rr6m9SxMZYl3dkTWly43lWcJgr/QXTp6kVcXPILUtyESlo74OVpMRkNuxN/FPfr90XD6boe79g8ZpdOdcgXgDxP9KrriUwh5UNN17iHE28/GR3D/Cg6K65kuHIx2txTCP/UidhQsf3D61skxwM6XXFUlVdfMeCwOlVGsQs9X8VxcEbDyI/mOWZjJmvN52Yfx/aaXyysVDr5mgaPas/2Iv0TzgnqELEfHalH5Kd+KWTkT9ziILzFeIepevlcrhNg2Ji5Z6gdCS4MK8741OqQkOdF72hYmDf+YoCGsTrmdhhUtRzJN++bzROQng3EEyCWa0PjMdlJZ9pACU+DIVbJw1nfjvtWXT6omunv0qHFb5HPchVNr/c9m5nJCCP5dPiBv2StGEyDFBPNoMUd3lF15V+vOB74boJMPQZ0zoLv9ywrI5x2VixB9pL1+BQJmQlkTjo96v1Z8hvqFZrNkctdIBIV6r3zyVnZ6s2/R56IAsxnrLor+2km1ZLqY5EOHN5M4HYe+LPfj//YMWksXBnh+gL8aow2MTK55Byq41KpW/P0iZHHBpqYIeEHl+BjhVA2cOm8OJFj32gDAwBRLY2aSm2kWRc0PzUFc cOA/i2mx DXkEqOiYGJEg6RcTwvJ/0jjdgJ+WgknvY0sMNXjaF9hmLuURXmvi6at3B6aRpDf0s4dMBebwVEh2etIZUziW5GXFzrB/XEdz9Vpot52fGrTBXD4oB6Md53bo0eafen6my8cZCZSt1h1BpIrWCXbHYdNQVK37y+uuQh9+rGhKwlAL/7JNVoHw1EOg3NwLyvp/2vcFPe/ftnxA7csJ/fIMnVoJxmNjCecRsm4kt/68jOW4ZOds= X-Bogosity: Ham, tests=bogofilter, spamicity=0.001192, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Unify hwpoisoned page handling and isolation of HugeTLB/LRU/non-LRU movable page, also convert to use folios in do_migrate_range(). Kefeng Wang (4): mm: memory-failure: add unmap_posioned_folio() mm: memory_hotplug: check hwpoisoned page firstly in do_migrate_range() mm: migrate: add isolate_folio_to_list() mm: memory_hotplug: unify Huge/LRU/non-LRU movable folio isolation mm/internal.h | 11 ++++++++ mm/memory-failure.c | 64 +++++++++++++++++++-------------------------- mm/memory_hotplug.c | 61 ++++++++++++++++++------------------------ mm/migrate.c | 27 +++++++++++++++++++ 4 files changed, 90 insertions(+), 73 deletions(-)