Unlock KERN_MAXFILES.
authormvs <mvs@openbsd.org>
Tue, 20 Aug 2024 13:29:25 +0000 (13:29 +0000)
committermvs <mvs@openbsd.org>
Tue, 20 Aug 2024 13:29:25 +0000 (13:29 +0000)
commit1b92846ddd7e1fa8b6e00bead79e839717a05c0a
tree250cca508e09d05cbc1df7a2fb66be31bf04f49e
parent68b5a753c431176ee0c5b1aeac13bbe5e674ec17
Unlock KERN_MAXFILES.

`maxfiles' is atomically accessed integer which is lockless and
read-only accessed in file descriptors layer.

lim_startup() called during kernel bootstrap, no need to
atomic_load_int() within.

ok mpi
sys/conf/param.c
sys/kern/kern_descrip.c
sys/kern/kern_resource.c
sys/kern/kern_sysctl.c