From patchwork Wed Apr 27 06:10:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yu X-Patchwork-Id: 12828310 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 8D3D6C433EF for ; Wed, 27 Apr 2022 06:10:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 224CB6B0075; Wed, 27 Apr 2022 02:10:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1D4C06B0078; Wed, 27 Apr 2022 02:10:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0C3BB6B007B; Wed, 27 Apr 2022 02:10:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.28]) by kanga.kvack.org (Postfix) with ESMTP id 002856B0075 for ; Wed, 27 Apr 2022 02:10:40 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id CA93920E8E for ; Wed, 27 Apr 2022 06:10:40 +0000 (UTC) X-FDA: 79401635040.04.C98FC3E Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by imf22.hostedemail.com (Postfix) with ESMTP id 4EA6BC0039 for ; Wed, 27 Apr 2022 06:10:36 +0000 (UTC) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R761e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=xuyu@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0VBRWdlK_1651039834; Received: from localhost(mailfrom:xuyu@linux.alibaba.com fp:SMTPD_---0VBRWdlK_1651039834) by smtp.aliyun-inc.com(127.0.0.1); Wed, 27 Apr 2022 14:10:34 +0800 From: Xu Yu To: linux-mm@kvack.org Cc: akpm@linux-foundation.org, naoya.horiguchi@nec.com, shy828301@gmail.com Subject: [PATCH 0/2] mm/memory-failure: rework fix on huge_zero_page splitting Date: Wed, 27 Apr 2022 14:10:15 +0800 Message-Id: X-Mailer: git-send-email 2.20.1.2432.ga663e714 MIME-Version: 1.0 X-Stat-Signature: itmifobfoxypzret74ag18z4kcy4zcx8 X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 4EA6BC0039 Authentication-Results: imf22.hostedemail.com; dkim=none; spf=pass (imf22.hostedemail.com: domain of xuyu@linux.alibaba.com designates 115.124.30.133 as permitted sender) smtp.mailfrom=xuyu@linux.alibaba.com; dmarc=pass (policy=none) header.from=alibaba.com X-Rspam-User: X-HE-Tag: 1651039836-300315 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: This is actually PATCH v3 for the bug reported in PATCH v2[1], which is prematurely merged into mainline. Therefore, this patchset first reverts PATCH v2, and then provides the v3 fix as the subsequent patch. [1] https://lkml.kernel.org/r/497d3835612610e370c74e697ea3c721d1d55b9c.1649775850.git.xuyu@linux.alibaba.com --- v2->v3: replace the BUG to WARN + returning -EBUSY when splitting huge_zero_page, and keep memory_failure unchanged. Xu Yu (2): Revert "mm/memory-failure.c: skip huge_zero_page in memory_failure()" mm/huge_memory: do not overkill when splitting huge_zero_page mm/huge_memory.c | 4 +++- mm/memory-failure.c | 13 ------------- 2 files changed, 3 insertions(+), 14 deletions(-)