From: Sage Weil Date: Tue, 14 Jul 2009 20:46:58 +0000 (-0700) Subject: mds: eval locks too in reissue_all_caps after mds restart X-Git-Tag: v0.10~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8e1d2ad7fc80d0c805aa8bf26dd225bf36f2dadf;p=ceph.git mds: eval locks too in reissue_all_caps after mds restart We may have correct wanted, issued info for the clients, but that doesn't help us if we don't use it. --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 476895cea164..b928a0addbba 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -4222,8 +4222,10 @@ void MDCache::reissue_all_caps() p != inode_map.end(); ++p) { CInode *in = p->second; - if (in->is_any_caps()) - mds->locker->issue_caps(in); + if (in->is_any_caps()) { + if (!mds->locker->eval(in, CEPH_CAP_LOCKS)) + mds->locker->issue_caps(in); + } } }