]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: set up devices only for mapped images
authorAlex Elder <elder@inktank.com>
Mon, 29 Apr 2013 04:32:34 +0000 (23:32 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:20:07 +0000 (21:20 -0700)
commitba38cc692e5f4943604757d13e84e4f53a5fc8fa
tree389599582a07f0e268a0ad4a755027aa1c8319fa
parent8b3ac542aeb93ae6b59d32a3f3a0a6150fd907c5
rbd: set up devices only for mapped images

Stop setting up Linux devices during the image probe operation.
Instead, set up the devices as a separate step after the image
probe, in rbd_add().

A consequence of this is that only mapped images get devices
assigned to them, which is pretty sweet.

This resolves:
    http://tracker.ceph.com/issues/4774

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c