]> git.baikalelectronics.ru Git - kernel.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>
Wed, 3 Jul 2013 22:32:41 +0000 (15:32 -0700)
commit64da5bf2fed69dcdaf0475306e38cdb726274a2b
tree50ce1f9db9ecede73a92fc6ce1680e340495fee1
parenta065ce55b9b57983c8cc562538e65fb023005b81
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