]> git.baikalelectronics.ru Git - kernel.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)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 4 Oct 2022 17:18:08 +0000 (19:18 +0200)
commitda68c836af767db19ca8ddd84df3eaccedaf7844
tree4ed44318d73c8bda5644e5262712afc0daaf6e9e
parentb3f8ffef9c163433b136bc74ec2bade7396bacd4
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