]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
rbd: remove parent devices on probe error
authorAlex Elder <elder@inktank.com>
Fri, 26 Apr 2013 20:44:36 +0000 (15:44 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:19:55 +0000 (21:19 -0700)
commit2e93bf9e465b7d0ccf703fb791c663435d9522cf
treeae1bbb292a93d0d51cdb6b42f2c46bd1f488eba8
parentad945fc1da42965a31089d29de3754047861f348
rbd: remove parent devices on probe error

When an error occurs while finishing probing a device it is assumed
that parent devices get cleaned up when deleting a device.  They
don't.  Add a call to clean them up.  Note that this means the
parent spec will already be cleaned up so it doesn't have to be
in one of the rbd_add() error paths.

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