Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ceph-fuse: Delete inode's bufferhead was in Tx state would lead a ass…
…ert fail Prematurely delted the bh which was in Tx state may lead the object can't be closed before its writer of this bh callback. Thus if inode's ref call put_inode decrease ref to zero and release inode's oset.An assert fail occur beacuse the oset can't be emptied. If gather.has_subs() is true, we can't call flush_set_callback() because this would cause a double drop of FILE_CACHE | FILE_BUFFER. Fixes:http://tracker.ceph.com/issues/23837 Signed-off-by: Guan yunfei <yunfei.guan@xtaotech.com> (cherry picked from commit 07e3bce)
- Loading branch information