]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: Do not check file size during trim read
authorChristopher Hoffman <choffman@redhat.com>
Tue, 28 Oct 2025 12:46:34 +0000 (12:46 +0000)
committerChristopher Hoffman <choffman@redhat.com>
Wed, 5 Nov 2025 13:59:36 +0000 (13:59 +0000)
The commit 154b86743b52 reverted part of the fix seen in 2b74598afc.
This commit will reapply any missing changes of the fix.

Fixes: https://tracker.ceph.com/issues/73416
Signed-off-by: Christopher Hoffman <choffman@redhat.com>
src/client/Client.cc

index d865dd7c4f68d0c441b96648f78541f3fe0feac5..dec0dbe989ed84cd8bd84eda12e020adcd68a01b 100644 (file)
@@ -11633,7 +11633,7 @@ retry:
     // C_Read_Sync_NonBlocking::finish().
 
     // trim read based on file size?
-    if (std::cmp_greater_equal(offset, in->effective_size()) || (size == 0)) {
+    if (size == 0) {
       // zero byte read requested -- therefore just release managed
       // pointers and complete the C_Read_Finisher immediately with 0 bytes
       Context *iof = iofinish.release();