summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2013-05-31 10:25:36 +0200
committerSage Weil <sage@inktank.com>2013-07-04 00:32:49 +0200
commit667ca05cd9f02f0a345446abc362484c019d4d71 (patch)
treeab1848c605ef1548998114a46b01c28e0cdecd2f /fs/ceph
parentceph: check migrate seq before changing auth cap (diff)
downloadlinux-667ca05cd9f02f0a345446abc362484c019d4d71.tar.xz
linux-667ca05cd9f02f0a345446abc362484c019d4d71.zip
ceph: clear migrate seq when MDS restarts
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com> Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/mds_client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index ddbd5907d41b..6272c7884e66 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -2455,6 +2455,7 @@ static int encode_caps_cb(struct inode *inode, struct ceph_cap *cap,
spin_lock(&ci->i_ceph_lock);
cap->seq = 0; /* reset cap seq */
cap->issue_seq = 0; /* and issue_seq */
+ cap->mseq = 0; /* and migrate_seq */
if (recon_state->flock) {
rec.v2.cap_id = cpu_to_le64(cap->cap_id);