]> granicus.if.org Git - zfs/commit
Replace zf_rwlock with a mutex
authorMatthew Ahrens <mahrens@delphix.com>
Thu, 25 Jul 2019 18:57:58 +0000 (11:57 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 25 Jul 2019 18:57:58 +0000 (11:57 -0700)
commit1ff46825e232b3ad3414f60fab8dcba8ed17d778
tree60a3a9b0a0029b74374b72297cf23f5b536d1977
parent09276fde1ce7730804957da88350c893d635526b
Replace zf_rwlock with a mutex

The rwlock implementation on linux does not perform as well as mutexes.
We can realize a performance benefit by replacing the zf_rwlock with a
mutex.  Local microbenchmarks show ~50% improvement, and over NFS we see
~5% improvement on several of the ZFS Performance Tests cases,
especially randwrite and seq_write.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Nguyen <tony.nguyen@delphix.com>
Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
Closes #9062
include/sys/dmu_zfetch.h
module/zfs/dmu_zfetch.c
module/zfs/dnode.c