mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: linux-kernel@vger.kernel.org, stable@vger.kernel.org
Cc: Ming Lei <ming.lei@redhat.com>,
	Guangwu Zhang <guazhang@redhat.com>, Jens Axboe <axboe@kernel.dk>,
	Sasha Levin <sashal@kernel.org>,
	linux-block@vger.kernel.org
Subject: [PATCH AUTOSEL 6.6 11/11] block: fix 'kmem_cache of name 'bio-108' already exists'
Date: Mon,  3 Mar 2025 11:31:09 -0500	[thread overview]
Message-ID: <20250303163109.3763880-11-sashal@kernel.org> (raw)
In-Reply-To: <20250303163109.3763880-1-sashal@kernel.org>

From: Ming Lei <ming.lei@redhat.com>

[ 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/bio.c b/block/bio.c
index 62419aa09d731..4a8e761699571 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -78,7 +78,7 @@ struct bio_slab {
 	struct kmem_cache *slab;
 	unsigned int slab_ref;
 	unsigned int slab_size;
-	char name[8];
+	char name[12];
 };
 static DEFINE_MUTEX(bio_slab_lock);
 static DEFINE_XARRAY(bio_slabs);
-- 
2.39.5


      parent reply	other threads:[~2025-03-03 16:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-03 16:30 [PATCH AUTOSEL 6.6 01/11] ASoC: tas2770: Fix volume scale Sasha Levin
2025-03-03 16:31 ` [PATCH AUTOSEL 6.6 02/11] ASoC: tas2764: Fix power control mask Sasha Levin
2025-03-03 16:31 ` [PATCH AUTOSEL 6.6 03/11] ASoC: tas2764: Set the SDOUT polarity correctly Sasha Levin
2025-03-03 16:31 ` [PATCH AUTOSEL 6.6 04/11] fuse: don't truncate cached, mutated symlink Sasha Levin
2025-03-03 16:31 ` [PATCH AUTOSEL 6.6 05/11] drm/vkms: Round fixp2int conversion in lerp_u16 Sasha Levin
2025-03-03 16:31 ` [PATCH AUTOSEL 6.6 06/11] perf/x86/intel: Use better start period for frequency mode Sasha Levin
2025-03-03 16:31 ` [PATCH AUTOSEL 6.6 07/11] x86/irq: Define trace events conditionally Sasha Levin
2025-03-03 16:31 ` [PATCH AUTOSEL 6.6 08/11] mptcp: safety check before fallback Sasha Levin
2025-03-03 16:31 ` [PATCH AUTOSEL 6.6 09/11] drm/nouveau: Do not override forced connector status Sasha Levin
2025-03-03 16:31 ` [PATCH AUTOSEL 6.6 10/11] net: Handle napi_schedule() calls from non-interrupt Sasha Levin
2025-03-03 16:31 ` Sasha Levin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250303163109.3763880-11-sashal@kernel.org \
    --to=sashal@kernel.org \
    --cc=axboe@kernel.dk \
    --cc=guazhang@redhat.com \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ming.lei@redhat.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®