Skip to content

Commit 62d1e38

Browse files
author
Ming Lei
committed
block: fix 'kmem_cache of name 'bio-108' already exists'
JIRA: https://issues.redhat.com/browse/RHEL-79409 commit b654f7a Author: Ming Lei <[email protected]> Date: Fri Feb 28 21:26:56 2025 +0800 block: fix 'kmem_cache of name 'bio-108' already exists' Device mapper bioset often has big bio_slab size, which can be more than 1000, then 8byte can't hold the slab name any more, cause the kmem_cache allocation warning of 'kmem_cache of name 'bio-108' already exists'. Fix the warning by extending bio_slab->name to 12 bytes, but fix output of /proc/slabinfo Reported-by: Guangwu Zhang <[email protected]> Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]> Signed-off-by: Ming Lei <[email protected]>
1 parent f9c7090 commit 62d1e38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/bio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ struct bio_slab {
7777
struct kmem_cache *slab;
7878
unsigned int slab_ref;
7979
unsigned int slab_size;
80-
char name[8];
80+
char name[12];
8181
};
8282
static DEFINE_MUTEX(bio_slab_lock);
8383
static DEFINE_XARRAY(bio_slabs);

0 commit comments

Comments
 (0)