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

Commit 3803da49 authored by Yan, Zheng's avatar Yan, Zheng Committed by Sage Weil
Browse files

ceph: reset iov_len when discarding cap release messages

parent bb137f84
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1391,6 +1391,7 @@ static void discard_cap_releases(struct ceph_mds_client *mdsc,
	num = le32_to_cpu(head->num);
	dout("discard_cap_releases mds%d %p %u\n", session->s_mds, msg, num);
	head->num = cpu_to_le32(0);
	msg->front.iov_len = sizeof(*head);
	session->s_num_cap_releases += num;

	/* requeue completed messages */