Introduce PR_MPSYSCTL flag to mark mp-safe (*pr_sysctl)() handlers and
authormvs <mvs@openbsd.org>
Fri, 16 Aug 2024 09:20:34 +0000 (09:20 +0000)
committermvs <mvs@openbsd.org>
Fri, 16 Aug 2024 09:20:34 +0000 (09:20 +0000)
commit60728a2f1b426b5caaaef66996d9e11ca9dce77d
tree8e6f4da5e9db3a2a0aa2867c9b72441ef3510879
parent74154050e23e3e1445a4199e332ecefe2690267e
Introduce PR_MPSYSCTL flag to mark mp-safe (*pr_sysctl)() handlers and
unlock both divert_sysctl() and divert6_sysctl(). Unlock them together,
because they are identical and pretty simple:

- DIVERTCTL_RECVSPACE and DIVERTCTL_SENDSPACE - atomically accessed
  integers;
- DIVERTCTL_STATS - per-CPU counters;

ok bluhm
sys/kern/uipc_domain.c
sys/netinet/in_proto.c
sys/netinet/ip_divert.c
sys/netinet6/in6_proto.c
sys/netinet6/ip6_divert.c
sys/sys/protosw.h