]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5bb2c5519e51a6a02b8c4d3d88cf485d0ae71787
tree63f9791533132b70ebd5b7168b8c2b92e910ac4f
parentb0bff7ac7bd48c0acf4b1f3a59173150fd9de33c
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