ceph: no need to wait for transition RDCACHE|RD -> RD
authorXiubo Li <xiubli@redhat.com>
Thu, 11 Aug 2022 05:00:53 +0000 (13:00 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 4 Oct 2022 17:18:08 +0000 (19:18 +0200)
commit7c3ea9870e09e193981695dd67c37a1a2b6d600b
tree4ed44318d73c8bda5644e5262712afc0daaf6e9e
parent6eb06c46214d33c71ae86d60b3fc9cb17c20beca
ceph: no need to wait for transition RDCACHE|RD -> RD

For write when trying to get the Fwb caps we need to keep waiting
on transition from WRBUFFER|WR -> WR to avoid a new WR sync write
from going before a prior buffered writeback happens.

While for read there is no need to wait on transition from
RDCACHE|RD -> RD, and we can just exclude the revoking caps and
force to sync read.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c