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
This commit is contained in:
@@ -2034,6 +2034,9 @@ static int prepare_sparse_read_data(struct ceph_connection *con)
|
||||
if (!con_secure(con))
|
||||
con->in_data_crc = -1;
|
||||
|
||||
ceph_msg_data_cursor_init(&con->v2.in_cursor, msg,
|
||||
msg->sparse_read_total);
|
||||
|
||||
reset_in_kvecs(con);
|
||||
con->v2.in_state = IN_S_PREPARE_SPARSE_DATA_CONT;
|
||||
con->v2.data_len_remain = data_len(msg);
|
||||
|
||||
Reference in New Issue
Block a user