From: "Yan, Zheng" <zheng.z.yan@xxxxxxxxx> For an inode just changed authority, if the new auth MDS want to change a lock in the inode from 'sync' to 'lock' state before caps are exported. The lock in replica can be in 'sync->lock' state because client caps prevent it from transitting to 'lock' state. So we should call eval() after clearing client caps. Signed-off-by: Yan, Zheng <zheng.z.yan@xxxxxxxxx> --- src/mds/Migrator.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc index 9829d68..41d97e9 100644 --- a/src/mds/Migrator.cc +++ b/src/mds/Migrator.cc @@ -1052,6 +1052,7 @@ void Migrator::finish_export_inode_caps(CInode *in) mds->send_message_client_counted(m, it->first); } in->clear_client_caps_after_export(); + mds->locker->eval(in, CEPH_CAP_LOCKS); } void Migrator::finish_export_inode(CInode *in, utime_t now, list<Context*>& finished) -- 1.7.11.7 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html