]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: defer clearing the CEPH_I_FLUSH_SNAPS flag
authorXiubo Li <xiubli@redhat.com>
Tue, 7 May 2024 04:43:10 +0000 (12:43 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 11 Feb 2026 18:19:16 +0000 (19:19 +0100)
commit59674024e39d98cad759af8e066ffd62703e2247
tree8837f1ed3cc17f9fd4364fc028f7a3fedb0fc225
parent283ac1d9b556c95c17ea201ddfff7ece40eda2ae
ceph: defer clearing the CEPH_I_FLUSH_SNAPS flag

Clear the flag just after the capsnap request being sent out. Else the
ceph_check_caps() will race with it and send the cap update request
just before this capsnap request. Which will cause the cap update request
to miss setting the CEPH_CLIENT_CAPS_PENDING_CAPSNAP flag and finally
the mds will drop the capsnap request to floor.

URL: https://tracker.ceph.com/issues/64209
URL: https://tracker.ceph.com/issues/65705
Signed-off-by: Xiubo Li <xiubli@redhat.com>
fs/ceph/caps.c