rbd: don't have device release destroy rbd_dev
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:05 +0000 (21:20 -0700)
commit8ad42cd0c002fa278f6d0135e22fcb188e400a28
tree802d421f6ea5637541218df660bbd83b16e04b00
parent6fd48b3be9f6d195a970b92040d097b5b886a99b
rbd: don't have device release destroy rbd_dev

Currently an rbd_device structure gets destroyed from the release
routine for the device embedded within it.  Stop doing that, instead
calling rbd_dev_image_release() right after rbd_bus_del_dev()
wherever the latter is called.

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