summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-03-08 18:05:21 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2024-03-08 18:05:21 -0800
commit09e5c48fea173b72f1c763776136eeb379b1bc47 (patch)
treeb0165146a05fdaae3762fe0082d8246567927fc0 /net
parent10d48d70e82d7d19eb9157fdb599bfce4a5768bc (diff)
parent321e3c3de53c7530cd518219d01f04e7e32a9d23 (diff)
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
Diffstat (limited to 'net')
-rw-r--r--net/ceph/messenger_v2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ceph/messenger_v2.c b/net/ceph/messenger_v2.c
index a0ca5414b333..bd608ffa0627 100644
--- a/net/ceph/messenger_v2.c
+++ b/net/ceph/messenger_v2.c
@@ -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);