From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22127C433EF for ; Wed, 27 Apr 2022 04:28:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357664AbiD0EcG (ORCPT ); Wed, 27 Apr 2022 00:32:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350114AbiD0EcE (ORCPT ); Wed, 27 Apr 2022 00:32:04 -0400 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F399713EBC for ; Tue, 26 Apr 2022 21:28:54 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1651033733; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=8fVc1RYJLxneaYYpgkElGllkQXs+OIbqjkeJxvpkd40=; b=lwmYMM60KvYA71LSYNLhz19i+hcScZCTCQic+ZW7X7VE5wcWypZN19REFGkaLs32k+kFFB OCJGDeMbmliV03TMQBNNArpQWaVTnWqDng6mJh3ljBcStrz1uYb/XuQnkO4o0+qmmu+j7m 6uHBgoF/q6po0EWcO9A1/xZOww+oWvY= From: Naoya Horiguchi To: linux-mm@kvack.org Cc: Andrew Morton , Miaohe Lin , David Hildenbrand , Mike Kravetz , Yang Shi , Oscar Salvador , Muchun Song , Naoya Horiguchi , linux-kernel@vger.kernel.org Subject: [RFC PATCH v1 0/4] mm, hwpoison: improve handling workload related to hugetlb and memory_hotplug Date: Wed, 27 Apr 2022 13:28:37 +0900 Message-Id: <20220427042841.678351-1-naoya.horiguchi@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This patchset addresses some issues on the workload related to hwpoison, hugetlb, and memory_hotplug. The problem in memory hotremove reported by Miaohe Lin [1] is mentioned in 2/4. This patch depends on "storing raw error info" functionality provided by 1/4. This patch also provide delayed dissolve function too. Patch 3/4 is to adjust unpoison to new semantics of HPageMigratable for hwpoisoned hugepage. And 4/4 is the fix for the inconsistent counter issue. [1] https://lore.kernel.org/linux-mm/20220421135129.19767-1-linmiaohe@huawei.com/ Please let me know if you have any suggestions and comments. Thanks, Naoya Horiguchi --- Summary: Naoya Horiguchi (4): mm, hwpoison, hugetlb: introduce SUBPAGE_INDEX_HWPOISON to save raw error page mm,hwpoison,hugetlb,memory_hotplug: hotremove memory section with hwpoisoned hugepage mm, hwpoison: add parameter unpoison to get_hwpoison_huge_page() mm, memory_hotplug: fix inconsistent num_poisoned_pages on memory hotremove include/linux/hugetlb.h | 29 +++++++++++++++++++++++++++-- mm/hugetlb.c | 24 ++++++++++++++++++++++-- mm/memory-failure.c | 8 ++++++-- mm/memory_hotplug.c | 23 +++++++++++------------ mm/page_alloc.c | 6 ++++++ 5 files changed, 72 insertions(+), 18 deletions(-)