mirror_zfs/module/zfs
Alexander Motin 42afb12da7
Remove refcount from spa_config_*()
The only reason for spa_config_*() to use refcount instead of simple
non-atomic (thanks to scl_lock) variable for scl_count is tracking,
hard disabled for the last 8 years.  Switch to simple int scl_count
reduces the lock hold time by avoiding atomic, plus makes structure
fit into single cache line, reducing the locks contention.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Mark Maybee <mark.maybee@delphix.com>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored-By: iXsystems, Inc.
Closes #12287
2021-07-01 09:16:54 -06:00
..
abd.c Help compiller optimize out abd_verify() 2021-06-25 16:38:31 -07:00
aggsum.c
arc.c Avoid 64bit division in multilist index functions 2021-06-29 06:59:14 -06:00
blkptr.c
bplist.c
bpobj.c
bptree.c
bqueue.c
btree.c
dataset_kstats.c
dbuf_stats.c
dbuf.c Avoid 64bit division in multilist index functions 2021-06-29 06:59:14 -06:00
ddt_zap.c Refactor dnode dirty context from dbuf_dirty 2020-02-26 16:09:17 -08:00
ddt.c module/zfs: simplify ddt_stat_add() loop 2021-06-29 08:26:11 -06:00
dmu_diff.c
dmu_object.c
dmu_objset.c Avoid 64bit division in multilist index functions 2021-06-29 06:59:14 -06:00
dmu_recv.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
dmu_redact.c
dmu_send.c implicit conversion from 'boolean_t' to 'ds_hold_flags_t' 2020-12-27 16:31:02 -08:00
dmu_traverse.c ZFS traverse_visitbp optimization to limit prefetch 2021-04-15 13:49:27 -07:00
dmu_tx.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
dmu_zfetch.c
dmu.c
dnode_sync.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
dnode.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
dsl_bookmark.c
dsl_crypt.c
dsl_dataset.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
dsl_deadlist.c
dsl_deleg.c
dsl_destroy.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
dsl_dir.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
dsl_pool.c
dsl_prop.c
dsl_scan.c
dsl_synctask.c
dsl_userhold.c
edonr_zfs.c
fm.c
gzip.c
hkdf.c
lz4.c Prefix zfs internal endian checks with _ZFS 2020-07-28 13:02:49 -07:00
lzjb.c
Makefile.in
metaslab.c Avoid 64bit division in multilist index functions 2021-06-29 06:59:14 -06:00
mmp.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
multilist.c
objlist.c
pathname.c
range_tree.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
refcount.c
rrwlock.c
sa.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
sha256.c
skein_zfs.c
spa_boot.c
spa_checkpoint.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
spa_config.c
spa_errlog.c
spa_history.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
spa_log_spacemap.c
spa_misc.c Remove refcount from spa_config_*() 2021-07-01 09:16:54 -06:00
spa_stats.c
spa.c Update cache file when setting compatibility property 2021-06-24 14:30:02 -07:00
space_map.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
space_reftree.c
THIRDPARTYLICENSE.cityhash
THIRDPARTYLICENSE.cityhash.descrip
txg.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
uberblock.c
unique.c
vdev_cache.c
vdev_draid_rand.c
vdev_draid.c
vdev_indirect_births.c
vdev_indirect_mapping.c
vdev_indirect.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
vdev_initialize.c
vdev_label.c
vdev_mirror.c
vdev_missing.c
vdev_queue.c
vdev_raidz_math_aarch64_neon_common.h
vdev_raidz_math_aarch64_neon.c
vdev_raidz_math_aarch64_neonx2.c
vdev_raidz_math_avx2.c
vdev_raidz_math_avx512bw.c
vdev_raidz_math_avx512f.c
vdev_raidz_math_impl.h
vdev_raidz_math_powerpc_altivec_common.h
vdev_raidz_math_powerpc_altivec.c
vdev_raidz_math_scalar.c
vdev_raidz_math_sse2.c
vdev_raidz_math_ssse3.c
vdev_raidz_math.c
vdev_raidz.c Fix dRAID sequential resilver silent damage handling 2021-05-20 15:05:26 -07:00
vdev_rebuild.c
vdev_removal.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
vdev_root.c
vdev_trim.c
vdev.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
zap_leaf.c
zap_micro.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
zap.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
zcp_get.c
zcp_global.c
zcp_iter.c Fix typos in module/zfs/ 2019-09-02 17:56:41 -07:00
zcp_set.c
zcp_synctask.c filesystem_limit/snapshot_limit is incorrectly enforced against root 2020-07-11 17:18:02 -07:00
zcp.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
zfeature.c
zfs_byteswap.c
zfs_fm.c
zfs_fuid.c
zfs_ioctl.c
zfs_log.c
zfs_onexit.c
zfs_quota.c
zfs_ratelimit.c
zfs_replay.c
zfs_rlock.c
zfs_sa.c
zfs_vnops.c
zil.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
zio_checksum.c
zio_compress.c
zio_inject.c Optimize small random numbers generation 2021-06-22 17:35:23 -06:00
zio.c Annotated dprintf as printf-like 2021-06-22 21:53:45 -07:00
zle.c
zrlock.c
zthr.c Retain thread name when resuming a zthr 2020-09-03 20:09:52 -07:00
zvol.c