From patchwork Sat Dec 11 16:32:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dennis Zhou X-Patchwork-Id: 12671833 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 17FEAC433EF for ; Sat, 11 Dec 2021 16:32:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 74BD56B0072; Sat, 11 Dec 2021 11:32:15 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6D49E6B0073; Sat, 11 Dec 2021 11:32:15 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 59B966B0074; Sat, 11 Dec 2021 11:32:15 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0088.hostedemail.com [216.40.44.88]) by kanga.kvack.org (Postfix) with ESMTP id 43E2F6B0072 for ; Sat, 11 Dec 2021 11:32:15 -0500 (EST) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id F41778249980 for ; Sat, 11 Dec 2021 16:32:04 +0000 (UTC) X-FDA: 78906055410.07.68ADF86 Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) by imf08.hostedemail.com (Postfix) with ESMTP id 95259160009 for ; Sat, 11 Dec 2021 16:32:02 +0000 (UTC) Received: by mail-qt1-f174.google.com with SMTP id f20so11324800qtb.4 for ; Sat, 11 Dec 2021 08:32:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=XEP0DHcvWb7FTwpOkIM/6NPyGUG4yd9oStGTxV/oR7Q=; b=LKF1S1+yvGsuHF//MNpSbffxNJe0w/THN1tVepF3HkdSTQv/FpGy3LFKsbOGpUeWb0 QOuMD6/a+gsrIALjWJJNtyesbW6u9q4cJ4V/ejMX6CElIvDJYHSGFMeZEDmtEvMqmiBL 4wbc76oqXupd3LhrHQp6X/9qkXlgeUdEWPxsJIAlX6jPQy4QpoIFrC6GBMCzW0aXXnjt ZqsAP8eL4E7HzgyR6h92cR6bE6aP0EVwq7ziqziPIkpk4KaGxKWIbNWMMVQzGSWGrOSq 2I0/qNeUqSc2HuTgntwSoJg6RNsDQ3poI4FzHCaRrTsYNmqf0Dbkr1QuEChwS+JKW2St 6KOA== X-Gm-Message-State: AOAM533GTTSyCYEDUJ9QNKBwjUI0U9NgQa8W5zMKIDn0EwOBijyxEvAJ 7583cpO7NaTT1VrsxYMesQ0= X-Google-Smtp-Source: ABdhPJwn+63x9YrJunRV4J5b3Uzf76UUlJvfL6T3UbgWx1sVUd9z3WqAuMaKIaZ6SCHPL7tWVoSe7w== X-Received: by 2002:ac8:5c45:: with SMTP id j5mr35511882qtj.58.1639240323649; Sat, 11 Dec 2021 08:32:03 -0800 (PST) Received: from fedora (pool-173-68-57-129.nycmny.fios.verizon.net. [173.68.57.129]) by smtp.gmail.com with ESMTPSA id bk39sm3196965qkb.35.2021.12.11.08.32.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Dec 2021 08:32:03 -0800 (PST) Date: Sat, 11 Dec 2021 11:32:01 -0500 From: Dennis Zhou To: Linus Torvalds Cc: Tejun Heo , Christoph Lameter , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] percpu fixes for v5.16-rc5 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 95259160009 X-Stat-Signature: tt5ubs3r1hu4ccyput98j5xj5eos5kyp Authentication-Results: imf08.hostedemail.com; dkim=none; spf=pass (imf08.hostedemail.com: domain of dennisszhou@gmail.com designates 209.85.160.174 as permitted sender) smtp.mailfrom=dennisszhou@gmail.com; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=none) X-HE-Tag: 1639240322-824014 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 Linus, This contains a fix for SMP && !MMU archs for percpu which has been tested by arm and sh. It seems in the past they have gotten away due to mapping of vm functions to km functions, but this fell apart a few releases ago and was just reported recently. The other is just a minor dependency clean up. I think queued up right now by Andrew is a fix in percpu that papers of what seems to be a bug in hotplug for a special situation with memoryless nodes. Michal Hocko is digging into it further. [1] https://lore.kernel.org/linux-mm/908909e0-4815-b580-7ff5-d824d36a141c@redhat.com/T/ Thanks, Dennis The following changes since commit 0fcfb00b28c0b7884635dacf38e46d60bf3d4eb1: Linux 5.16-rc4 (2021-12-05 14:08:22 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu.git for-5.16-fixes for you to fetch changes up to a4f1192cb53758a7210ed5a9ee695aeba22f75fb: percpu_ref: Replace kernel.h with the necessary inclusions (2021-12-09 15:41:09 -0500) ---------------------------------------------------------------- Andy Shevchenko (1): percpu_ref: Replace kernel.h with the necessary inclusions Vladimir Murzin (1): percpu: km: ensure it is used with NOMMU (either UP or SMP) include/linux/percpu-refcount.h | 2 +- mm/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/percpu-refcount.h b/include/linux/percpu-refcount.h index b31d3f3312ce..d73a1c08c3e3 100644 --- a/include/linux/percpu-refcount.h +++ b/include/linux/percpu-refcount.h @@ -51,9 +51,9 @@ #define _LINUX_PERCPU_REFCOUNT_H #include -#include #include #include +#include #include struct percpu_ref; diff --git a/mm/Kconfig b/mm/Kconfig index 28edafc820ad..356f4f2c779e 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -428,7 +428,7 @@ config THP_SWAP # UP and nommu archs use km based percpu allocator # config NEED_PER_CPU_KM - depends on !SMP + depends on !SMP || !MMU bool default y