]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ceph: clear migrate seq when MDS restarts
authorYan, Zheng <zheng.z.yan@intel.com>
Fri, 31 May 2013 08:25:36 +0000 (16:25 +0800)
committerSage Weil <sage@inktank.com>
Thu, 13 Jun 2013 15:46:34 +0000 (08:46 -0700)
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
fs/ceph/mds_client.c

index ddbd5907d41ba831acdd42a1acdb016147a51dce..6272c7884e6613390e3b8ec5727ba7b6ba77d2c7 100644 (file)
@@ -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);