CVSROOT: /cvs Module name: src Changes by: m...@cvs.openbsd.org 2025/06/03 08:23:09
Modified files: sys/kern : kern_sysctl.c Log message: Push kernel lock deep down to sysctl_file(). Move sleeping malloc(9) allocation of `kf' out of `sysctl_lock' rwlock(9). If the sleep happens, the most of sysctl layer became unusable. Fortunately, we expect context switch in `allprocess' foreach loops, so we could keep kernel lock only around them and avoid sleeping memory allocation under `sysctl_lock'. ok bluhm