diff mbox

[4/5] mds: call eval() after cap is imported

Message ID 1354243014-21072-5-git-send-email-zheng.z.yan@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Yan, Zheng Nov. 30, 2012, 2:36 a.m. UTC
From: "Yan, Zheng" <zheng.z.yan@intel.com>

The migrator calls eval() for imported caps after importing a
directory tree. We should do the same thing after importing a
inode.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
---
 src/mds/Migrator.cc | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc
index 41d97e9..fcc06cd 100644
--- a/src/mds/Migrator.cc
+++ b/src/mds/Migrator.cc
@@ -2613,6 +2613,7 @@  void Migrator::logged_import_caps(CInode *in,
 
   assert(cap_imports.count(in));
   finish_import_inode_caps(in, from, cap_imports[in]);  
+  mds->locker->eval(in, CEPH_CAP_LOCKS);
 
   mds->send_message_mds(new MExportCapsAck(in->ino()), from);
 }