]> git-server-git.apps.pok.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>
Thu, 19 Jun 2025 08:53:46 +0000 (08:53 +0000)
commit2b74598afc52d1a6cb98ef6b524ec162360cf040
tree66d4d5dbf40ddf7ba7b35e1d673921c1a15f6c92
parent0c95e42ecfe46e4d35777dbe0fb23cbc00804eb3
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>
src/client/Client.cc