forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since arc_c can be updated concurrently from multiple threads, there's a race condition between any check of its value and the subsequent updating of it. This patch updates its value using atomic_cas_64() and re-tries the test if it has been changed by another thread. Reverts: 935434e Fixes: openzfs#3904 Fixes: openzfs#4161
- Loading branch information
Showing
1 changed file
with
46 additions
and
20 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