diff options
author | Alexander Motin <[email protected]> | 2021-07-01 11:16:54 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-01 09:16:54 -0600 |
commit | 42afb12da70f1fd73c7fcf653d5e2bf42f05b42b (patch) | |
tree | 34742eff40f1336babe913162a8d8c0715eaa1a9 /autogen.sh | |
parent | cfc564f9b11eed1421789fa018f7b3d141cc18d0 (diff) |
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 <[email protected]>
Reviewed-by: Matthew Ahrens <[email protected]>
Reviewed-by: Mark Maybee <[email protected]>
Signed-off-by: Alexander Motin <[email protected]>
Sponsored-By: iXsystems, Inc.
Closes #12287
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions