From 9e0565cdef3f25b9c26b512d8b2e7508bfaf05aa Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 13 Apr 2011 12:03:31 -0700 Subject: [PATCH] mds: fix dn unlocking on export_reverse Triggered by mds_kill_import_at 5. We were clearing the export_locks prior to calling export_unlock (der!). Signed-off-by: Sage Weil --- src/mds/Migrator.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc index aa33ee6870096..95e165d4a9023 100644 --- a/src/mds/Migrator.cc +++ b/src/mds/Migrator.cc @@ -266,7 +266,6 @@ void Migrator::handle_mds_failure_or_stop(int who) export_state.erase(dir); // clean up export_locks.erase(dir); dir->state_clear(CDir::STATE_EXPORTING); - export_unlock(dir); break; case EXPORT_LOGGINGFINISH: @@ -1305,6 +1304,8 @@ void Migrator::export_reverse(CDir *dir) // unfreeze dir->unfreeze_tree(); + export_unlock(dir); + cache->show_cache(); } -- 2.39.5