linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* slab warning: kmem_cache of name 'dm_bufio_buffer' already exists
@ 2024-11-06 11:19 Mikulas Patocka
  2024-11-06 11:34 ` Vlastimil Babka
  0 siblings, 1 reply; 14+ messages in thread
From: Mikulas Patocka @ 2024-11-06 11:19 UTC (permalink / raw)
  To: Pedro Falcato, Vlastimil Babka, Christoph Lameter, Pekka Enberg,
	David Rientjes, Joonsoo Kim, Andrew Morton
  Cc: zkabelac, Roman Gushchin, Hyeonggon Yoo, linux-mm

Hi

The commit 4c39529663b93165953ecf9b1a9ea817358dcd06 ("slab: Warn on 
duplicate cache names when DEBUG_VM=y") is causing large number of 
warnings about "dm_bufio_buffer", "dm_bufio_buffer-%u" (and other) device 
mapper caches.

I'd like to ask - how to properly fix it?

We create a "dm_bufio_buffer" or "dm_bufio_buffer-%u" cache with every dm 
bufio client. It used to work (and the duplicate caches are merged), but 
now it warns.

Should I append a pointer to the dm_bufio structure to the slab cache name 
to make them different? Or is there any other preferred solution?

Note that it is not possible to pre-create the cache "dm_bufio_buffer-%u" 
in the module's init function, because the size of per-buffer auxiliary 
data is not known at this point.

Mikulas



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-11-08 17:44 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-06 11:19 slab warning: kmem_cache of name 'dm_bufio_buffer' already exists Mikulas Patocka
2024-11-06 11:34 ` Vlastimil Babka
2024-11-06 12:05   ` Mikulas Patocka
2024-11-06 16:28     ` Vlastimil Babka
2024-11-06 21:22       ` Mikulas Patocka
2024-11-08  9:56         ` Vlastimil Babka
2024-11-08 11:13           ` Hyeonggon Yoo
2024-11-08 11:21             ` Vlastimil Babka
2024-11-08 13:47           ` Pedro Falcato
2024-11-08 10:08         ` Vlastimil Babka
2024-11-08 14:56           ` Christoph Hellwig
2024-11-08 16:49   ` Yang Shi
2024-11-08 17:00     ` Vlastimil Babka
2024-11-08 17:43       ` Yang Shi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox