]> git.proxmox.com Git - mirror_spl.git/commit - module/spl/spl-kmem-cache.c
Remove skc_ref from alloc/free paths
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 23 Jul 2015 20:45:31 +0000 (13:45 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 24 Jul 2015 18:11:45 +0000 (11:11 -0700)
commit4699d76d19f1ff4a59c16c10b2aedab6f5054a73
tree0d2ea9341b6312b7c7e31400d9128a579df66412
parent62aa81a5776c0bc35f05f8923ea3e293527b5264
Remove skc_ref from alloc/free paths

As described in spl_kmem_cache_destroy() the ->skc_ref count was
added to address the case of a cache reap or grow racing with a
destroy.  They are not strictly needed in the alloc/free paths
because consumers of the cache are responsible for not using it
while it's being destroyed.

Removing this code is desirable because there is some evidence that
contention on this atomic negative impacts performance on large-scale
NUMA systems.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Issue #463
module/spl/spl-kmem-cache.c