From: NeilBrown Date: Tue, 1 Jun 2010 09:37:25 +0000 (+1000) Subject: md/raid5: ensure we create a unique name for kmem_cache when mddev has no gendisk X-Git-Tag: v2.6.36-rc1~280^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4be6b43f1ac60dff00ef0923ee43b0e08872947;p=pandora-kernel.git 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: NeilBrown --- Reading git-diff-tree failed