Push kernel lock deep down to sys_sysctl(). At least network subset of
authormvs <mvs@openbsd.org>
Thu, 4 May 2023 09:40:36 +0000 (09:40 +0000)
committermvs <mvs@openbsd.org>
Thu, 4 May 2023 09:40:36 +0000 (09:40 +0000)
commitea08070e8b7d883782954e72d1fa8c40098814a7
tree9d3bf5896f935d5312c71a441cedd32bf67b0f95
parente298277ca082e68e94046929c53917c57065f44c
Push kernel lock deep down to sys_sysctl(). At least network subset of
sysctl(8) MIBs relies on netlock or another locks and doesn't require
kernel lock, so unlock it. The protocols layer *_sysctl()s are left
under kernel lock and will be sequentially unlocked later.

ok bluhm@
sys/kern/kern_sysctl.c
sys/kern/syscalls.master
sys/kern/uipc_domain.c