rbd: make rbd_dev_destroy() match rbd_dev_create()
authorAlex Elder <elder@inktank.com>
Fri, 26 Apr 2013 14:43:47 +0000 (09:43 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:19:42 +0000 (21:19 -0700)
commit9f5dffdc8f5dbc16493566b6aac59f275d5cb3f9
tree63f9791533132b70ebd5b7168b8c2b92e910ac4f
parent468521c1b1450d8e9bda22df9455deaa4feed00f
rbd: make rbd_dev_destroy() match rbd_dev_create()

Currently, rbd_dev_destroy() does more than just the inverse of what
rbd_dev_create() does.  Stop doing that, and move the two extra
things it does into the three call sites.

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