diff options
Diffstat (limited to 'net/ceph/osd_client.c')
-rw-r--r-- | net/ceph/osd_client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index 86a9737d8e3f..901bb8221366 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c | |||
@@ -5310,7 +5310,10 @@ static int invalidate_authorizer(struct ceph_connection *con) | |||
5310 | 5310 | ||
5311 | static void osd_reencode_message(struct ceph_msg *msg) | 5311 | static void osd_reencode_message(struct ceph_msg *msg) |
5312 | { | 5312 | { |
5313 | encode_request_finish(msg); | 5313 | int type = le16_to_cpu(msg->hdr.type); |
5314 | |||
5315 | if (type == CEPH_MSG_OSD_OP) | ||
5316 | encode_request_finish(msg); | ||
5314 | } | 5317 | } |
5315 | 5318 | ||
5316 | static int osd_sign_message(struct ceph_msg *msg) | 5319 | static int osd_sign_message(struct ceph_msg *msg) |