From: Yan, Zheng Date: Fri, 31 May 2013 08:26:44 +0000 (+0800) Subject: ceph: reset iov_len when discarding cap release messages X-Git-Tag: next-20130617~100^2~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a3a49733a0c22ffd0a96b4d1962099d895947759;p=karo-tx-linux.git ceph: reset iov_len when discarding cap release messages Signed-off-by: Yan, Zheng Reviewed-by: Sage Weil --- diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 4d2920304be8..ddbd5907d41b 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -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 */