]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: fire the finish_cap_snap() after buffer being flushed 38732/head
authorXiubo Li <xiubli@redhat.com>
Wed, 30 Dec 2020 01:41:01 +0000 (09:41 +0800)
committerXiubo Li <xiubli@redhat.com>
Sat, 9 Jan 2021 01:49:49 +0000 (09:49 +0800)
commita34d0c242a73d7c29956b6894a430d9979225632
tree03924a37718b8a178f43dcd8b21d4db6b4fef589
parent1bea6e5135148169baaf656563bb1acbe6a593b6
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>
src/client/Client.cc