rbd: move rbd_dev_destroy() call out of rbd_dev_image_release()
authorIlya Dryomov <idryomov@gmail.com>
Thu, 13 Apr 2017 10:17:37 +0000 (12:17 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 4 May 2017 07:19:23 +0000 (09:19 +0200)
commit8b679ec5257eeb3d73b71a613cad2769f21c86ad
tree98649d694c335db4993a9bdc9a8edfe7cdf87c81
parent26544c623e741ac6445f8b1ae369ee32ae1794ad
rbd: move rbd_dev_destroy() call out of rbd_dev_image_release()

... to simplify error handling in do_rbd_add().

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
drivers/block/rbd.c