Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mds: properly setup client_need_snapflush for snap inode
MDCache::cow_inode() checks "cap->issued() & CEPH_CAP_ANY_WR" to decide if it needs to setup client_need_snapflush for the new snap inode. If cap message flushes dirty caps and releases the same caps, cap->issued() may have no WR caps when MDCache::cow_inode() gets called. The solution is temporarily setting NEEDSNAPFLUSH on Capability::state. Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
- Loading branch information
Showing
1 changed file
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters