All of lore.kernel.org
 help / color / mirror / Atom feed
* + lib-test_meminit-destroy-cache-in-kmem_cache_alloc_bulk-test.patch added to -mm tree
@ 2021-12-21 23:11 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-12-21 23:11 UTC (permalink / raw)
  To: mm-commits, ryabinin.a.a, glider, elver, dvyukov, andreyknvl


The patch titled
     Subject: lib/test_meminit: destroy cache in kmem_cache_alloc_bulk() test
has been added to the -mm tree.  Its filename is
     lib-test_meminit-destroy-cache-in-kmem_cache_alloc_bulk-test.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/lib-test_meminit-destroy-cache-in-kmem_cache_alloc_bulk-test.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/lib-test_meminit-destroy-cache-in-kmem_cache_alloc_bulk-test.patch

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 and is updated
there every 3-4 working days

------------------------------------------------------
From: Andrey Konovalov <andreyknvl@google.com>
Subject: lib/test_meminit: destroy cache in kmem_cache_alloc_bulk() test

Make do_kmem_cache_size_bulk() destroy the cache it creates.

Link: https://lkml.kernel.org/r/aced20a94bf04159a139f0846e41d38a1537debb.1640018297.git.andreyknvl@google.com
Fixes: 03a9349ac0e0 ("lib/test_meminit: add a kmem_cache_alloc_bulk() test")
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Marco Elver <elver@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 lib/test_meminit.c |    1 +
 1 file changed, 1 insertion(+)

--- a/lib/test_meminit.c~lib-test_meminit-destroy-cache-in-kmem_cache_alloc_bulk-test
+++ a/lib/test_meminit.c
@@ -337,6 +337,7 @@ static int __init do_kmem_cache_size_bul
 		if (num)
 			kmem_cache_free_bulk(c, num, objects);
 	}
+	kmem_cache_destroy(c);
 	*total_failures += fail;
 	return 1;
 }
_

Patches currently in -mm which might be from andreyknvl@google.com are

kasan-fix-quarantine-conflicting-with-init_on_free.patch
lib-test_meminit-destroy-cache-in-kmem_cache_alloc_bulk-test.patch


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

only message in thread, other threads:[~2021-12-21 23:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-21 23:11 + lib-test_meminit-destroy-cache-in-kmem_cache_alloc_bulk-test.patch added to -mm tree akpm

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.