From: Yan, Zheng Date: Fri, 31 May 2013 08:25:36 +0000 (+0800) Subject: ceph: clear migrate seq when MDS restarts X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=667ca05cd9f02f0a345446abc362484c019d4d71;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ceph: clear migrate seq when MDS restarts Signed-off-by: Yan, Zheng Reviewed-by: Sage Weil --- 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);