]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/dbuf.c
Revert "Reduce dbuf_find() lock contention"
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 19 Sep 2022 18:07:15 +0000 (11:07 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 22 Sep 2022 19:59:41 +0000 (12:59 -0700)
commit223b04d23d6e84dfb6c983c46f69d5986625125c
tree29696c28679e279b6dc87b5a87c4a32caf7064f6
parente506a0ce40bd777a84ba1de8ed40df2154f7afb1
Revert "Reduce dbuf_find() lock contention"

This reverts commit 34dbc618f50cfcd392f90af80c140398c38cbcd1.  While this
change resolved the lock contention observed for certain workloads, it
inadventantly reduced the maximum hash inserts/removes per second.  This
appears to be due to the slightly higher acquisition cost of a rwlock vs
a mutex.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
include/sys/dbuf.h
module/zfs/dbuf.c
module/zfs/dbuf_stats.c