From 1bf2a5cc5b202dfed8416b5096e036c87a28ce8c Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Tue, 9 Oct 2018 16:42:41 +0800 Subject: [PATCH] mds: don't cap log when there are replicated objects replicas may dirty scatter locks Fixes: http://tracker.ceph.com/issues/21467 Signed-off-by: "Yan, Zheng" --- src/mds/MDCache.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 8743ec9955a89b..84330df475b8f5 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -7701,6 +7701,12 @@ bool MDCache::shutdown_pass() ceph_assert(!migrator->is_exporting()); ceph_assert(!migrator->is_importing()); + // replicas may dirty scatter locks + if (myin && myin->is_replicated()) { + dout(7) << "still have replicated objects" << dendl; + return false; + } + if ((myin && myin->is_auth_pinned()) || (mydir && mydir->is_auth_pinned())) { dout(7) << "still have auth pinned objects" << dendl;