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

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
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);