]> 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>
Fri, 6 Jun 2025 09:12:29 +0000 (11:12 +0200)
commit03f052c0cb1dc228f433036ad4c12b86c643ccca
treeab636a7976270125bb1b82aaf90e9c43eb048cef
parent01fdc064d55679bfcaaea5f2265bce020a0d085c
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