Skip to content
Snippets Groups Projects
Commit 42964e4b authored by Mikulas Patocka's avatar Mikulas Patocka
Browse files

dm-bufio: fix warnings about duplicate slab caches


The commit 4c395296 adds a warning about duplicate cache names if
CONFIG_DEBUG_VM is selected. These warnings are triggered by the dm-bufio
code. The dm-bufio code allocates a slab cache with each client. It is
not possible to preallocate the caches in the module init function
because the size of auxiliary per-buffer data is not known at this point.

So, this commit changes dm-bufio so that it appends a unique atomic value
to the cache name, to avoid the warnings.

Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
Fixes: 4c395296 ("slab: Warn on duplicate cache names when DEBUG_VM=y")
parent 2d5404ca
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment