libceph: remove MAX_EXTENTS check for sparse reads
authorXiubo Li <xiubli@redhat.com>
Tue, 7 Nov 2023 01:37:47 +0000 (09:37 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 15 Jan 2024 14:40:50 +0000 (15:40 +0100)
commitb79e4a0aa902322756ced7361a2c637d462c3c1c
treea04f530e0c81e33d279e5f70b60abdc70cd1c574
parentf48e0342a74d7770cdf1d11894bdc3b6d989b29e
libceph: remove MAX_EXTENTS check for sparse reads

There is no any limit for the extent array size and it's possible
that when reading with a large size contents the total number of
extents will exceed 4096. Then the messager will fail by reseting
the connection and keeps resending the inflight IOs infinitely.

[ idryomov: adjust error message ]

Link: https://tracker.ceph.com/issues/62081
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/osd_client.c