All of lore.kernel.org
 help / color / mirror / Atom feed
* [folded-merged] percpu-fix-race-on-alloc-failed-warning-limit-v2.patch removed from -mm tree
@ 2025-09-09  6:43 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-09-09  6:43 UTC (permalink / raw)
  To: mm-commits, tj, dennis, cl, bhe, vdumitrescu, akpm


The quilt patch titled
     Subject: percpu-fix-race-on-alloc-failed-warning-limit-v2
has been removed from the -mm tree.  Its filename was
     percpu-fix-race-on-alloc-failed-warning-limit-v2.patch

This patch was dropped because it was folded into percpu-fix-race-on-alloc-failed-warning-limit.patch

------------------------------------------------------
From: Vlad Dumitrescu <vdumitrescu@nvidia.com>
Subject: percpu-fix-race-on-alloc-failed-warning-limit-v2
Date: Fri, 5 Sep 2025 15:42:14 -0700

prevent warn_limit from going negative, per Christoph Lameter

Link: https://lkml.kernel.org/r/ee87cc59-2717-4dbb-8052-1d2692c5aaaa@nvidia.com
Fixes: f7d77dfc91f7 ("mm/percpu.c: print error message too if atomic alloc failed")
Signed-off-by: Vlad Dumitrescu <vdumitrescu@nvidia.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Christoph Lameter (Ampere) <cl@gentwo.org>
Cc: Dennis Zhou <dennis@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/percpu.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/mm/percpu.c~percpu-fix-race-on-alloc-failed-warning-limit-v2
+++ a/mm/percpu.c
@@ -1904,8 +1904,8 @@ fail_unlock:
 fail:
 	trace_percpu_alloc_percpu_fail(reserved, is_atomic, size, align);
 
-	if (do_warn && atomic_read(&warn_limit) > 0) {
-		int remaining = atomic_dec_return(&warn_limit);
+	if (do_warn) {
+		int remaining = atomic_dec_if_positive(&warn_limit);
 
 		if (remaining >= 0) {
 			pr_warn("allocation failed, size=%zu align=%zu atomic=%d, %s\n",
_

Patches currently in -mm which might be from vdumitrescu@nvidia.com are

percpu-fix-race-on-alloc-failed-warning-limit.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-09-09  6:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-09  6:43 [folded-merged] percpu-fix-race-on-alloc-failed-warning-limit-v2.patch removed from -mm tree Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.