Skip to content

Commit 09e5c48

Browse files
committed
Merge tag 'ceph-for-6.8-rc8' of https://github.com/ceph/ceph-client
Pull ceph fix from Ilya Dryomov: "A follow-up for sparse read fixes that went into -rc4 -- msgr2 case was missed and is corrected here" * tag 'ceph-for-6.8-rc8' of https://github.com/ceph/ceph-client: libceph: init the cursor when preparing sparse read in msgr2
2 parents 10d48d7 + 321e3c3 commit 09e5c48

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/ceph/messenger_v2.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,6 +2034,9 @@ static int prepare_sparse_read_data(struct ceph_connection *con)
20342034
if (!con_secure(con))
20352035
con->in_data_crc = -1;
20362036

2037+
ceph_msg_data_cursor_init(&con->v2.in_cursor, msg,
2038+
msg->sparse_read_total);
2039+
20372040
reset_in_kvecs(con);
20382041
con->v2.in_state = IN_S_PREPARE_SPARSE_DATA_CONT;
20392042
con->v2.data_len_remain = data_len(msg);

0 commit comments

Comments
 (0)