diff options
author | Alexander Motin <[email protected]> | 2021-08-17 11:44:34 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-17 09:44:34 -0600 |
commit | e829a865bf6482a0d62913f528e516ce3b759d7b (patch) | |
tree | cf24e6252a3c5c483191a9c4d9d45e05294d0767 /RELEASES.md | |
parent | 5bfc3a99f93da97e8612bceae146cf2d5166481b (diff) |
Use more atomics in refcounts
Use atomic_load_64() for zfs_refcount_count() to prevent torn reads
on 32-bit platforms. On 64-bit ones it should not change anything.
When built with ZFS_DEBUG but running without tracking enabled use
atomics instead of mutexes same as for builds without ZFS_DEBUG.
Since rc_tracked can't change live we can check it without lock.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Matthew Ahrens <[email protected]>
Signed-off-by: Alexander Motin <[email protected]>
Sponsored-By: iXsystems, Inc.
Closes #12420
Diffstat (limited to 'RELEASES.md')
0 files changed, 0 insertions, 0 deletions