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

Commit 914902af authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

libceph: don't call encode_request_finish() on MOSDBackoff messages



encode_request_finish() is for MOSDOp messages.  Calling it on
MOSDBackoff ack-block messages corrupts them.

Fixes: a02a946d ("libceph: respect RADOS_BACKOFF backoffs")
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent f5cc6898
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -5310,6 +5310,9 @@ static int invalidate_authorizer(struct ceph_connection *con)

static void osd_reencode_message(struct ceph_msg *msg)
{
	int type = le16_to_cpu(msg->hdr.type);

	if (type == CEPH_MSG_OSD_OP)
		encode_request_finish(msg);
}