OSDN Git Service

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)
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>

No differences found