From: Dennis Zhou <dennis@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Tejun Heo <tj@kernel.org>, Christoph Lameter <cl@linux.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: [GIT PULL] percpu fixes for v5.16-rc5
Date: Sat, 11 Dec 2021 11:32:01 -0500 [thread overview]
Message-ID: <YbTSgYx7qZ5XO6Yo@fedora> (raw)
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 <linux/atomic.h>
-#include <linux/kernel.h>
#include <linux/percpu.h>
#include <linux/rcupdate.h>
+#include <linux/types.h>
#include <linux/gfp.h>
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
next reply other threads:[~2021-12-11 16:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-11 16:32 Dennis Zhou [this message]
2021-12-12 0:34 ` pr-tracker-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YbTSgYx7qZ5XO6Yo@fedora \
--to=dennis@kernel.org \
--cc=cl@linux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=tj@kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox