]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: fire the finish_cap_snap() after buffer being flushed 40629/head
authorXiubo Li <xiubli@redhat.com>
Wed, 30 Dec 2020 01:41:01 +0000 (09:41 +0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 6 Apr 2021 19:21:11 +0000 (12:21 -0700)
commitd1f2fe220a0ea8ea80a810e9b2798fd86d271775
tree4b81ead002121368939aa1a44edf742d358c7d60
parentb489dbe65859cc9b6cc1ebced29ccc7d12a49e62
client: fire the finish_cap_snap() after buffer being flushed

When the inode has Fb cap and the used reference is none zero, the
cap snap flushing will be delayed, so we need to make sure it will
be invoked after the dirty buffer is flushed to osd.

Fixes: https://tracker.ceph.com/issues/48679
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit a34d0c242a73d7c29956b6894a430d9979225632)
src/client/Client.cc