From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5950618B476 for ; Thu, 16 Jan 2025 06:24:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737008672; cv=none; b=oiK+LTDQTT6pPpNGNpAsZFXLvlcIww1mYkjvk0pFZePkBUZ7eC0quT/NyM2wCQfQr3fOoBCMO2dOTTqC0owDRzGPtWc/2LnizFmvacxmNoP4kyjcaHBby27l2Qs2w+sZl5NscjMw6YtzqKWMGpixytrv0j+y2jzNzisig9vmeGU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737008672; c=relaxed/simple; bh=d01POkfibxQAIgS+cRnZuWgTum4brrWvHaoUNGrBJfQ=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=N7x/zb7Vf2TXH3o76HGr/A0tDsovn5sEfPne9P5/2RAuQZs+Ckgxj0Waxk6sK0Yj9gRKjoBvY9MGWnFl+QfQtZ7llRUZkFrh817XBXk1biFmLOifTfeYAzyNs/7fmkgdqnIUtG24XqwyUEPbANyPH1ktcGlFHPFKqVIxidcizxc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com 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 To: , , , , , CC: , , 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemg100017.china.huawei.com (7.202.181.58) From: Ma Wupeng 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(-) -- 2.43.0