]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
FreeBSD: switch teardown lock to rms
authorMateusz Guzik <mjguzik@gmail.com>
Wed, 4 Nov 2020 22:28:56 +0000 (17:28 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 12 Mar 2021 23:51:48 +0000 (15:51 -0800)
commite3e82dcc515586d460bb739ceb549443df26a863
tree5f086b467ecfa7bcd76e3abb894b31a1d4ceb9af
parent5ebe425a5bf332ab1d77d78eb3bfd9594b5d7250
FreeBSD: switch teardown lock to rms

This deserializes otherwise non-contending operations.

The previous scheme of using 17 locks hashed by curthread runs into
conflicts very quickly. Check the pull request for sample results.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matt Macy <mmacy@FreeBSD.org>
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Closes #11153
include/os/freebsd/zfs/sys/zfs_vfsops_os.h