rbd: set the 'device' link in sysfs ceph-for-5.6-rc1
authorHannes Reinecke <hare@suse.de>
Thu, 23 Jan 2020 12:44:33 +0000 (13:44 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 27 Jan 2020 15:53:40 +0000 (16:53 +0100)
commit3325322f773bae68b20d8fa0e9e8ebb005271db5
tree73223d36eda520317cd68c1e66939be8341680c6
parent24604f7e2bde5e6458812c3e9ee2a0d60c8c99fe
rbd: set the 'device' link in sysfs

The rbd driver already provides additional information in sysfs
under /sys/bus/rbd, so we should set the 'device' link in the block
device to reference this information.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c