]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: fire the finish_cap_snap() after buffer being flushed 40722/head
authorXiubo Li <xiubli@redhat.com>
Wed, 30 Dec 2020 01:41:01 +0000 (09:41 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 9 Apr 2021 09:01:35 +0000 (11:01 +0200)
commite2be681bc8acf3372e0b8cf03871d670de838738
treeb37b975e8f53892f64a4976944f1d4afd85dda90
parentde53324e2ed213b54996d5a5345721a9feffd98a
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