]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: re-issue caps after importing inode
authorYan, Zheng <zheng.z.yan@intel.com>
Sat, 12 Oct 2013 01:18:20 +0000 (09:18 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Mon, 16 Dec 2013 04:15:23 +0000 (12:15 +0800)
After importing inode, the issued caps can be less than the caps
client wants. So always re-issue caps after importing inode.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/Locker.cc

index b2e44dbec69e5118f1849fc61b46318fec0bf1cf..9dcf669d849454835b764f3fe1a35027aa64d75c 100644 (file)
@@ -823,7 +823,7 @@ void Locker::eval_gather(SimpleLock *lock, bool first, bool *pneed_issue, list<C
 
 bool Locker::eval(CInode *in, int mask, bool caps_imported)
 {
-  bool need_issue = false;
+  bool need_issue = caps_imported;
   list<Context*> finishers;
   
   dout(10) << "eval " << mask << " " << *in << dendl;