Commit 09e5c48f authored by Linus Torvalds's avatar Linus Torvalds

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
parents 10d48d70 321e3c3d
...@@ -2034,6 +2034,9 @@ static int prepare_sparse_read_data(struct ceph_connection *con) ...@@ -2034,6 +2034,9 @@ static int prepare_sparse_read_data(struct ceph_connection *con)
if (!con_secure(con)) if (!con_secure(con))
con->in_data_crc = -1; con->in_data_crc = -1;
ceph_msg_data_cursor_init(&con->v2.in_cursor, msg,
msg->sparse_read_total);
reset_in_kvecs(con); reset_in_kvecs(con);
con->v2.in_state = IN_S_PREPARE_SPARSE_DATA_CONT; con->v2.in_state = IN_S_PREPARE_SPARSE_DATA_CONT;
con->v2.data_len_remain = data_len(msg); con->v2.data_len_remain = data_len(msg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment