From patchwork Tue Aug 23 03:02:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12951658 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 98EACC32793 for ; Tue, 23 Aug 2022 03:02:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 789CE8D0006; Mon, 22 Aug 2022 23:02:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5FC9E8D000A; Mon, 22 Aug 2022 23:02:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 16E7D8D0006; Mon, 22 Aug 2022 23:02:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id D3BC18D0009 for ; Mon, 22 Aug 2022 23:02:41 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id B70AE4130D for ; Tue, 23 Aug 2022 03:02:41 +0000 (UTC) X-FDA: 79829359722.06.859E499 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by imf17.hostedemail.com (Postfix) with ESMTP id 268784000B for ; Tue, 23 Aug 2022 03:02:40 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MBYrn0177zGpn0; Tue, 23 Aug 2022 11:00:56 +0800 (CST) Received: from huawei.com (10.175.124.27) 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.2375.24; Tue, 23 Aug 2022 11:02:35 +0800 From: Miaohe Lin To: , , CC: , , , Subject: [PATCH v2 0/6] A few fixup patches for hugetlb Date: Tue, 23 Aug 2022 11:02:03 +0800 Message-ID: <20220823030209.57434-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661223761; a=rsa-sha256; cv=none; b=mvr1nKHEvW9fDnqouUqbu1SjR+EtAtYBNLyCRpxj1xnE/MQ5glZTidb0JrYf61M2s6liaU zfJaUZFVvjhsUAi/tkq4BE0A0ITI/ZQPXr3LKSNeqcNSjkt1LPJFioQNfIdX4FXpIKQWtv p0a6AVpFDeev78a9donx17bWFT8p9sE= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf17.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661223761; 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=5w3tTiiPUYhGeIbSeLa3JAyWuSCNrbVr6D/dJE5Cjfo=; b=dOj7ygsAWJq0HzDYA0eZjKss+f4AIZDIOzkg0wrOQvOAUqxiCsKXTX5yzRzbosPvOFhG0/ JSZGoJAbZdsjw2IccSc4Eg8Nod6rb1Mf5lARadDP930QAyx50e/NEKG/pdQPRYSCp3A/8q 5X6+1hip7r/25O6ekeMl3yRoOKwjEbo= X-Rspam-User: Authentication-Results: imf17.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf17.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 268784000B X-Stat-Signature: p7qx47rnwe5mz4ok8pmri68eyyibkup1 X-HE-Tag: 1661223760-567998 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: Hi everyone, This series contains a few fixup patches to fix incorrect update of max_huge_pages, fix WARN_ON(!kobj) in sysfs_create_group() and so on. More details can be found in the respective changelogs. Thanks! --- v2: Collect Reviewed-by tag per Mike, Muchun and Fengwei. Thanks! Remove err == -EEXIST check and retry logic in 3/6. Remove unused local variable dst_entry per Lukas. Thanks! --- Miaohe Lin (6): mm/hugetlb: fix incorrect update of max_huge_pages mm/hugetlb: fix WARN_ON(!kobj) in sysfs_create_group() mm/hugetlb: fix missing call to restore_reserve_on_error() mm: hugetlb_vmemmap: add missing smp_wmb() before set_pte_at() mm/hugetlb: fix sysfs group leak in hugetlb_unregister_node() mm/hugetlb: make detecting shared pte more reliable mm/hugetlb.c | 61 +++++++++++++++++++++++++++----------------- mm/hugetlb_vmemmap.c | 5 ++++ 2 files changed, 42 insertions(+), 24 deletions(-)