]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix export cancellation vs nested freezes
authorSage Weil <sage.weil@dreamhost.com>
Wed, 23 Feb 2011 22:25:06 +0000 (14:25 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Thu, 24 Feb 2011 15:35:21 +0000 (07:35 -0800)
commit3e691d3181f4e897b456f8bae08ec6d3d346fe3a
tree565d6fba9f28e9b2280a900be3bfde6ce6a0640e
parentc78b29a47d7211a4b8b1585112ac22b8435a82c7
mds: fix export cancellation vs nested freezes

Prevent freezes from completing while we are canceling exports.  Otherwise
if we are freezing /a/b and /a, and cancel /a/b, we may inadvertantly
complete the freeze on /a (synchronously) and confuse ourselves.  Pin
all freezes beforehand so that when we cancel each one we do not cause
any others to prematurely complete.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mds/Migrator.cc