From patchwork Sat Jul 8 08:57:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 11769 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3796519vqx; Sat, 8 Jul 2023 02:01:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlF335wEFjVx3td0AeZ8GiFWO6GCwtYQ5ejcLW6whGxSxrsLQjTpQGh2SMJSuiHmoSn/T/uF X-Received: by 2002:a17:906:5307:b0:974:5399:c21 with SMTP id h7-20020a170906530700b0097453990c21mr5278912ejo.24.1688806880592; Sat, 08 Jul 2023 02:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688806880; cv=none; d=google.com; s=arc-20160816; b=1Elab7OSt6hljfRUTFstTx5NVwNGMyD4GvrJ5+iM5W1C5FHUdvxZ4J/+zfPYVWRub0 dxPAUukYcQ2BHFTMZU5hrHeH2N8FIu37SKrVH2fa2uX2bOrJaGWEtgR/P7gtlTOz5B8i ZhT0i0r8PONagrZreIGhsi93s0mFknaWxJFVjnYS5z0i4NMPRCr+c54e+Z9WyMuXw5k2 zyA+a1DVkr7wGk31SrBqPg5bA0SKXUrThmnBzztkN+bDUTB15+LBOit/OOtBtqatX2PB 93cjInqWIYi3gCex7cecgSp+QLsYQqsttvp0gdYmo9qkxQBLu3EYrGO2wrcaw8yHZ8lR 0owg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=BuYA0wfn3H+eqdQLF8nN49hmAN5Ii+YUR/sv8joyKyI=; fh=4o7DIXI/66oHEW09L3854GeQKXh9nrvBy5ZxENMFBvA=; b=sS0586PJXN1Jd4EjhYFBOTQLa7bVJ/CtwmPCOVKGzluZIQJbWDGiw4nDURGWk03d08 tzDYInfel5sS7S/5Z2OUdfYHoUU1EzJfRad9FP6wOLq2cok6izQkycMeaFvgqDiUADHp 7Gy96pTK8h+Hzqa4rpdr51FP+gqWavU7xvT/G/2FRPHTb7nhkKxFMizR2cOLR4le1iYE dhypEJaZ+u99f9H9wiiFshag4GMf6A3w65IlR8SxSVHAl9FZLOGz6o1Ny02nEraPOSIE PWtW9OydBfTaKXrksH9HNdn2t8iX+2BG9EHSQ49NwClRSiyCl2pui4c2Tn1xNxiD+YWT aALw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w10-20020a1709060a0a00b00991f834e0b3si3040371ejf.194.2023.07.08.02.00.57; Sat, 08 Jul 2023 02:01:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230029AbjGHI5q (ORCPT + 99 others); Sat, 8 Jul 2023 04:57:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230002AbjGHI5f (ORCPT ); Sat, 8 Jul 2023 04:57:35 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5F351FEF for ; Sat, 8 Jul 2023 01:57:32 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Qykdd5Fb2zTkg4; Sat, 8 Jul 2023 16:56:21 +0800 (CST) Received: from huawei.com (10.174.151.185) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Sat, 8 Jul 2023 16:57:28 +0800 From: Miaohe Lin To: , CC: , , Subject: [PATCH 0/8] A few fixup and cleanup patches for memory-failure Date: Sat, 8 Jul 2023 16:57:36 +0800 Message-ID: <20230708085744.3599311-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Originating-IP: [10.174.151.185] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770842363609647876?= X-GMAIL-MSGID: =?utf-8?q?1770842363609647876?= Hi everyone, This series contains a few fixup patches to fix potential permanently locked hpage, fix race window when trying to get hugetlb folio and so on. Also there is minor cleanup for comments and codestyle. More details can be found in the respective changelogs. Thanks! Miaohe Lin (8): mm: memory-failure: fix potential permanently locked hpage mm: memory-failure: ensure moving HWPoison flag to the raw error pages mm: memory-failure: Don't account hwpoison_filter() filtered pages mm: memory-failure: use local variable huge to check hugetlb page mm: memory-failure: remove unneeded header files mm: memory-failure: minor cleanup for comments and codestyle mm: memory-failure: fetch compound head after extra page refcnt is held mm: memory-failure: fix race window when trying to get hugetlb folio mm/memory-failure.c | 49 +++++++++++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 19 deletions(-)