]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: do not check file size when inode does not have Fc caps
authorVenky Shankar <vshankar@redhat.com>
Tue, 20 May 2025 12:19:41 +0000 (12:19 +0000)
committerVenky Shankar <vshankar@redhat.com>
Mon, 23 Jun 2025 03:19:03 +0000 (03:19 +0000)
commit333969d7de60b0dcf3ea4f44a5c66af037e73e73
tree3ce3826d2c8bb1aaa84fdbe53d3ca2541701d513
parent311750d8601503d43c71bd1cbb88d7b00d5c0cfd
client: do not check file size when inode does not have Fc caps

Since the client is holding Fr caps, the read request can be
directly sent to the OSD. The offset/in->size comparison check
is causing the read request to return with no data since in->size
isn't yet updated when another client does an extending write.

Introduced-by: 942474c2f5b4c696364f3b7411ae7d96444edfa8
Fixes: http://tracker.ceph.com/issues/70726
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 2b74598afc52d1a6cb98ef6b524ec162360cf040)
src/client/Client.cc