]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rbd: protect against concurrent unmaps
authorAlex Elder <elder@inktank.com>
Fri, 31 May 2013 22:40:44 +0000 (17:40 -0500)
committerSage Weil <sage@inktank.com>
Thu, 13 Jun 2013 15:46:26 +0000 (08:46 -0700)
commit41b6520db69378386c846f125a1091ba8ea13de9
treee9339ff575472824b83572803a1df8e87a837340
parenta029ecedd8778633a26845aac2807111bf2b4b4a
rbd: protect against concurrent unmaps

Make sure two concurrent unmap operations on the same rbd device
won't collide, by only proceeding with the removal and cleanup of a
device if is not already underway.

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