Message ID | 20250116061657.227027-1-mawupeng1@huawei.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 08D59E77188 for <linux-mm@archiver.kernel.org>; Thu, 16 Jan 2025 06:24:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 78F296B008A; Thu, 16 Jan 2025 01:24:37 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 750B66B0085; Thu, 16 Jan 2025 01:24:37 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5B8986B0093; Thu, 16 Jan 2025 01:24:37 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 36D7D6B0085 for <linux-mm@kvack.org>; Thu, 16 Jan 2025 01:24:37 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id D5474AF332 for <linux-mm@kvack.org>; Thu, 16 Jan 2025 06:24:36 +0000 (UTC) X-FDA: 83012326152.12.31340E0 Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) by imf08.hostedemail.com (Postfix) with ESMTP id 9F4A616000A for <linux-mm@kvack.org>; Thu, 16 Jan 2025 06:24:33 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf08.hostedemail.com: domain of mawupeng1@huawei.com designates 45.249.212.191 as permitted sender) smtp.mailfrom=mawupeng1@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1737008675; a=rsa-sha256; cv=none; b=Eq5ObSiONzQC7euRXMcbmOMJyet/KC6vHQzm5r0HTugY3WrZUV3tRoJR5mgiOfYeuFlK0P vbCjV+r2zCp/KhLHOYna/sseGK9XPlxtG5e+uRFTf+5WV+CyjLHif2erQgAc6opC4ZQloZ HGRFYPq4Vi78x3jS6ET0SAjKG+r1tEE= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf08.hostedemail.com: domain of mawupeng1@huawei.com designates 45.249.212.191 as permitted sender) smtp.mailfrom=mawupeng1@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1737008675; 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=FgB/dhkVaXosINKtBXiwDYDRSsyrpV/JXxa1kDpnjis=; b=QjJ5R0qbX735ApxNwKyx2B/iMf9DmQSDVtHwTa+ZUpNV9SMI7YN/yhpEPzY+hOnIsbp959 nrl2469MEDtu/U03E/Xg0yVHMd33JwUqgcKaOKZtDrwXk9d2/sOsWdOgen5rfUyfy//KFa MoA/3cdXHgaDUb9VTT8M35D9EDv7e1I= Received: from mail.maildlp.com (unknown [172.19.88.214]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4YYXn71vjdz1kyYC; Thu, 16 Jan 2025 14:21:15 +0800 (CST) Received: from kwepemg100017.china.huawei.com (unknown [7.202.181.58]) by mail.maildlp.com (Postfix) with ESMTPS id 6B41D1A0171; Thu, 16 Jan 2025 14:24:26 +0800 (CST) Received: from huawei.com (10.175.124.71) by kwepemg100017.china.huawei.com (7.202.181.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 16 Jan 2025 14:24:25 +0800 From: Wupeng Ma <mawupeng1@huawei.com> To: <akpm@linux-foundation.org>, <david@redhat.com>, <osalvador@suse.de>, <nao.horiguchi@gmail.com>, <linmiaohe@huawei.com>, <mhocko@suse.com> CC: <mawupeng1@huawei.com>, <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH v2 0/3] mm: memory_failure: unmap poisoned filio during migrate properly Date: Thu, 16 Jan 2025 14:16:54 +0800 Message-ID: <20250116061657.227027-1-mawupeng1@huawei.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.124.71] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemg100017.china.huawei.com (7.202.181.58) X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 9F4A616000A X-Stat-Signature: sixbep4ua851w7dedo11dzxcxwx44y39 X-Rspam-User: X-HE-Tag: 1737008673-653489 X-HE-Meta: U2FsdGVkX19CJ+u4q2S7e9PBvuw8WGY3vV8gIYfu/3eNG0euqblQflC0OEHClv8om3aDu0KSYkruxMFxCfA9ECwQPciV9DIY/tWhtqeFFy+qLgFwbwZ5Exzg71AU8es1w4Pi5pCFJwJbwrup/VKtiK6ALADUAk47YUUBYHx/y+XAQCeftZx/a1hjwYS5te8wg2sQOITtHNzP9J3LatdRFlbeUIfDLKsHY3/wgtmgbJumkgSIRYQ2pNECbSpkQsZCfECsFFAYtLs7sPIrEPtIKUx9s5tSpxTIS4p186CzqadxFDBg7DEEBnHkjwlt5kFCsbNJ08qFQZZIqYI5/wIVLUYmvf5WOw5pMetYB+0Lv0BcghrVE70Qe4cKUGBGcUbxtbsPd9PHH9HcTjX5ixErcPSGu2H72j5GCO6wIK/c/Kjlvij5JchoIalBEYgs1qRAfjm1q2QA6iS7GGvhscCQu+Pg4ySONu31ot/HxQMIRuDVqLmihCoL+mhZbGNmb11OS5cXugr1szreRd0zS0ANwilxAdAHapSD7oGApn3SAhfnM89P8ERjESAuKxHcHeg+kMfTTZBHHJZBOZJuZKhL+qRxj7kHgu82OyZouRv9JqTqC9EXSWhFoHKOLJ5aFbuUdSvHSgyWSEmhgBcUPqYLJYSoXAal9UQvv1Xm4LxZ/TOSZceZ9tixnlwSHYK39aE1NBtu67ftFi0/DpxOU96UjuWxe1nNCp9E7lJRAGNaIROvRUW0ferkfeodWKQTKv3a5BcPh4IO7Uw1GjkoBFoxWjZyMiqxUGkGBQtSlxPMbdGnC778k7FhD+VfGhV5ot/TafoRFhl8la26t+i4NpTKqIVM1R0uV0s2m+UymGGyYACMueOEBNEjFdiSuS2woroDNYgS/Dc9LRUjrPPebot3tEV26oib84zyx/mK0OGqhGkfMASrOX4sjiemP8DXj6w284U6XgaZuksXERozCqU 1CWWtN2s sKoaq7FdagDwL1OrqcukIhvHvOyV1V0bqnhJoJpP8PeIrGuh5EgHbLdLnltylyacM0HhllrFKBRHOzA5z9NmPFNZR0qGVyoxgrf2OrPpbkeeKTtU68jc952E7WrSzfQxo0rnHHJqkIxvJc3NOZW6SPQQ/7P+zXhxm4PlOPOMsgSOWFoJ+gXNn59TFXbdPYg4Z2oTKIvpeIlOSPykKZsVXx57B6FWaYy+Qz2nXyKIg/kPk+mVT80wFFmMBK8jO7pESFHib X-Bogosity: Ham, tests=bogofilter, spamicity=0.004303, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm: memory_failure: unmap poisoned filio during migrate properly
|
expand
|
From: Ma Wupeng <mawupeng1@huawei.com> Fix two bugs during migrate folio if folio is poisoned. Changelog since v1: - update ttu flag inside unmap_poisoned_folio. - check folio ref count before unmap HWpoisoned folio. Ma Wupeng (3): mm: memory-failure: update ttu flag inside unmap_poisoned_folio hwpoison, memory_hotplug: lock folio before unmap hwpoisoned folio mm: memory-hotplug: check folio ref count first in do_migrate_rang mm/internal.h | 5 ++-- mm/memory-failure.c | 61 +++++++++++++++++++++++---------------------- mm/memory_hotplug.c | 22 ++++++++-------- 3 files changed, 44 insertions(+), 44 deletions(-)