-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osd, cls/cas: fix to make inc/dec operation idempotent
Current dedup allow to contain multiple same sources using multiset, which results in inconsistent situation as follow (during set_chunk, but not confined in set_chunk). 1. complete primary write 2. Failure occurs before replication is done 3. cancel repop 4. requeue the op Due to 4, inc. op is applied one more time. At this time, current inc op---this is similar to ++ operation--- increases the ref. count once again. To prevent this, inc/dec op needs to be idempotent using absolute value. fixes: https://tracker.ceph.com/issues/51000 Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
- Loading branch information
Showing
6 changed files
with
91 additions
and
19 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
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