Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mds: wait unlink to finish to avoid conflict when creating same dentries
If the previous unlink request has been delayed due to some reasons, and the new creating for the same dentry may fail or new open will succeeds but new contents wrote to it will be lost. The kernel client will make sure before the unlink getting the first reply it won't send the followed create requests for the same dentry. Here we need to make sure that before the first reply has been sent out the dentry must be marked as unlinking. Fixes: https://tracker.ceph.com/issues/55332 Signed-off-by: Xiubo Li <xiubli@redhat.com>
- Loading branch information
Showing
8 changed files
with
238 additions
and
29 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
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
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
Oops, something went wrong.