Skip to content
Commit f4be6b43 authored by NeilBrown's avatar NeilBrown
Browse files

md/raid5: ensure we create a unique name for kmem_cache when mddev has no gendisk



We will shortly allow md devices with no gendisk (they are attached to
a dm-target instead).  That will cause mdname() to return 'mdX'.
There is one place where mdname really needs to be unique: when
creating the name for a slab cache.
So in that case, if there is no gendisk, you the address of the mddev
formatted in HEX to provide a unique name.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent c41d4ac4
Loading
Loading
Loading
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