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

Commit 85792d0d authored by Sage Weil's avatar Sage Weil
Browse files

ceph: cope with out of order (unsafe after safe) mds reply



Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent aba558e2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1871,6 +1871,12 @@ static void handle_reply(struct ceph_mds_session *session, struct ceph_msg *msg)
		mutex_unlock(&mdsc->mutex);
		goto out;
	}
	if (req->r_got_safe && !head->safe) {
		pr_warning("got unsafe after safe on %llu from mds%d\n",
			   tid, mds);
		mutex_unlock(&mdsc->mutex);
		goto out;
	}

	result = le32_to_cpu(head->result);