]> 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)
commitd267107253ca4ab560604c4dc773d33fd0e1ad26
tree50ce1f9db9ecede73a92fc6ce1680e340495fee1
parentfc348affe84615a199d4073f100c8a85ec980892
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