提交 3325322f 编写于 作者: H Hannes Reinecke 提交者: Ilya Dryomov

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: NHannes Reinecke <hare@suse.com>
Reviewed-by: NIlya Dryomov <idryomov@gmail.com>
Signed-off-by: NIlya Dryomov <idryomov@gmail.com>
上级 24604f7e
...@@ -7143,7 +7143,7 @@ static ssize_t do_rbd_add(struct bus_type *bus, ...@@ -7143,7 +7143,7 @@ static ssize_t do_rbd_add(struct bus_type *bus,
if (rc) if (rc)
goto err_out_image_lock; goto err_out_image_lock;
add_disk(rbd_dev->disk); device_add_disk(&rbd_dev->dev, rbd_dev->disk, NULL);
/* see rbd_init_disk() */ /* see rbd_init_disk() */
blk_put_queue(rbd_dev->disk->queue); blk_put_queue(rbd_dev->disk->queue);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册