Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 667ca05c authored by Yan, Zheng's avatar Yan, Zheng Committed by Sage Weil
Browse files

ceph: clear migrate seq when MDS restarts

parent b8c2f3ae
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);