ceph: always queue a writeback when revoking the Fb caps
authorXiubo Li <xiubli@redhat.com>
Wed, 13 Sep 2023 08:18:34 +0000 (16:18 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 13 Feb 2024 10:22:35 +0000 (11:22 +0100)
commit902d6d013f75b68f31d208c6f3ff9cdca82648a7
tree9b5c845a3b5180b34fc1c34bbb599325527c8406
parent841c35169323cd833294798e58b9bf63fa4fa1de
ceph: always queue a writeback when revoking the Fb caps

In case there is 'Fw' dirty caps and 'CHECK_CAPS_FLUSH' is set we
will always ignore queue a writeback. Queue a writeback is very
important because it will block kclient flushing the snapcaps to
MDS and which will block MDS waiting for revoking the 'Fb' caps.

Link: https://tracker.ceph.com/issues/50223
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c