From d538817f6208bfe9c6460adb19cee51b2fa1b3f0 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 17 Nov 2010 08:42:44 -0800 Subject: [PATCH] mds: flush log on fragment This makes request lock auth_pins expire, so the fragment moves along. Otherwise we can end up waiting for the log flush timer to go off. This isn't a complete solution; in-progress requests won't know to flush. Signed-off-by: Sage Weil --- src/mds/MDCache.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 6b472ed18d7e6..db8888c004097 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -8809,6 +8809,9 @@ void MDCache::fragment_mark_and_complete(list& dirs) dout(15) << " already marked " << *dir << dendl; } } + + // flush log so that request auth_pins are retired + mds->mdlog->flush(); } void MDCache::fragment_unmark_unfreeze_dirs(list& dirs) -- 2.39.5