All of lore.kernel.org
 help / color / mirror / Atom feed
* + assoc_array-fix-bug_on-during-garbage-collect-v2.patch added to mm-hotfixes-unstable branch
@ 2022-05-12 23:14 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-05-12 23:14 UTC (permalink / raw)
  To: mm-commits, len.baker, gustavoars, dhowells, stephen.s.brennan, akpm


The patch titled
     Subject: assoc_array: Fix BUG_ON during garbage collect
has been added to the -mm mm-hotfixes-unstable branch.  Its filename is
     assoc_array-fix-bug_on-during-garbage-collect-v2.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/assoc_array-fix-bug_on-during-garbage-collect-v2.patch

This patch will later appear in the mm-hotfixes-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days

------------------------------------------------------
From: Stephen Brennan <stephen.s.brennan@oracle.com>
Subject: assoc_array: Fix BUG_ON during garbage collect

correct comparison to "<="

Link: https://lkml.kernel.org/r/20220512215045.489140-1-stephen.s.brennan@oracle.com
Fixes: 3cb989501c26 ("Add a generic associative array implementation.")
Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Len Baker <len.baker@gmx.com>
Cc: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 lib/assoc_array.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/lib/assoc_array.c~assoc_array-fix-bug_on-during-garbage-collect-v2
+++ a/lib/assoc_array.c
@@ -1609,7 +1609,7 @@ retry_compress:
 		}
 	}
 
-	if (retained && new_n->nr_leaves_on_branch < ASSOC_ARRAY_FAN_OUT) {
+	if (retained && new_n->nr_leaves_on_branch <= ASSOC_ARRAY_FAN_OUT) {
 		pr_devel("internal nodes remain despite enough space, retrying\n");
 		goto retry_compress;
 	}
_

Patches currently in -mm which might be from stephen.s.brennan@oracle.com are

assoc_array-fix-bug_on-during-garbage-collect.patch
assoc_array-fix-bug_on-during-garbage-collect-v2.patch


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

only message in thread, other threads:[~2022-05-12 23:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-12 23:14 + assoc_array-fix-bug_on-during-garbage-collect-v2.patch added to mm-hotfixes-unstable branch 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.