aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org> 2024-03-08 18:05:21 -0800
committerGravatar Linus Torvalds <torvalds@linux-foundation.org> 2024-03-08 18:05:21 -0800
commit09e5c48fea173b72f1c763776136eeb379b1bc47 (patch)
treeb0165146a05fdaae3762fe0082d8246567927fc0 /net
parentMerge tag 'char-misc-6.8-rc8' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff)
parentlibceph: init the cursor when preparing sparse read in msgr2 (diff)
downloadlinux-09e5c48fea173b72f1c763776136eeb379b1bc47.tar.gz
linux-09e5c48fea173b72f1c763776136eeb379b1bc47.tar.bz2
linux-09e5c48fea173b72f1c763776136eeb379b1bc47.zip
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);