Push kernel lock from ifioctl() into ifioctl_get()
authorkn <kn@openbsd.org>
Wed, 9 Nov 2022 13:08:36 +0000 (13:08 +0000)
committerkn <kn@openbsd.org>
Wed, 9 Nov 2022 13:08:36 +0000 (13:08 +0000)
commit2f41dca0021b9f2199135b426023d989c948f115
tree257e8362eaa4d869f30a8e900cd72768df053f2a
parent75a38c89436cfd7541af75d29a2fa225b9b40cfa
Push kernel lock from ifioctl() into ifioctl_get()

Recommit these two together:
- r1.667 "Push kernel lock into ifioctl_get()"
  locked before the switch() without unlocking in its cases
- r1.668 "Push kernel lock inside ifioctl_get()"
  locked cases individually, as intended

I messed up splitting commits, but of course, Hrvoje managed to test a
CVS checkout right inbetween those two.

OK mpi mvs
sys/net/if.c