Files
mirror_zfs/module
Alexander Motin e829a865bf 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 <behlendorf1@llnl.gov>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored-By: iXsystems, Inc.
Closes #12420
2021-08-17 09:44:34 -06:00
..
2021-07-26 12:07:53 -07:00
2021-07-26 12:07:39 -07:00
2020-06-10 09:24:15 -07:00
2021-04-02 18:52:15 -07:00
2021-08-17 09:44:34 -06:00
2021-06-25 22:28:12 -07:00
2020-06-10 09:24:15 -07:00
2020-08-20 10:30:06 -07:00