]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
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)
committerXiubo Li <xiubli@redhat.com>
Fri, 26 Aug 2022 23:51:58 +0000 (07:51 +0800)
commit4067e8f2300e475ba73213fb9f42e1fda79f819e
treedbb301e14020c4e22ebefcc13c65db0777f9b25c
parentd2d07b0f1588fd6a432db0c0aaeb6237616b1ed4
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>
fs/ceph/caps.c