mirror_zfs/module/os/freebsd
Mark Johnston aba5b019cb Annontate FreeBSD sysctls with CTLFLAG_MPSAFE
Without this, the sysctl system calls will acquire a global lock before
invoking the handler.  This is noticeable in some situations when
running top(1).  The global lock is mostly vestigal but continues to see
some use and so contention is still a problem; until the default sense
of the MPSAFE flag changes, we have to annotate each and every handler.

Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Signed-off-by: Mark Johnston <markj@FreeBSD.org>
Closes #10836
2020-10-01 12:16:21 -07:00
..
spl Annontate FreeBSD sysctls with CTLFLAG_MPSAFE 2020-10-01 12:16:21 -07:00
zfs Annontate FreeBSD sysctls with CTLFLAG_MPSAFE 2020-10-01 12:16:21 -07:00