]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: fix 'kmem_cache of name 'bio-108' already exists'
authorMing Lei <ming.lei@redhat.com>
Fri, 28 Feb 2025 13:26:56 +0000 (21:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:31:51 +0000 (14:31 +0200)
commita755c6d1dfe714afb6c254cec9b1cf6843ffc9ae
tree99d3451b912c3a82ec32da65b70e6925c455ede4
parente51d136d3369954e29bbf1477a4dff5c1f5d8a64
block: fix 'kmem_cache of name 'bio-108' already exists'

[ Upstream commit b654f7a51ffb386131de42aa98ed831f8c126546 ]

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 <guazhang@redhat.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250228132656.2838008-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/bio.c