From bdd94ef1a735b67a0533188eba2efe327c34e0d9 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 9 Jun 2011 14:07:39 -0700 Subject: [PATCH] mds: explicitly issue_caps after file_recover Signed-off-by: Sage Weil --- src/mds/MDCache.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 00e0e7c1f5a61..0ebdc8aa351fa 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -5008,9 +5008,12 @@ void MDCache::do_file_recover() << " " << *in << dendl; in->state_clear(CInode::STATE_NEEDSRECOVER); in->auth_unpin(this); - if (in->filelock.is_stable()) - mds->locker->eval(&in->filelock); - else + if (in->filelock.is_stable()) { + bool need_issue = false; + mds->locker->eval(&in->filelock, &need_issue); + if (need_issue) + mds->locker->issue_caps(in); + } else mds->locker->eval_gather(&in->filelock); } } -- 2.39.5