OpenBSD cvs log

created 2025-01-06T16:59:38Z
begin 2025-01-04T02:34:11Z
end 2025-01-04T09:26:01Z
path src/sys
commits 1

date 2025-01-04T09:26:01Z
author mvs
files src/sys/kern/kern_sysctl.c log diff annotate
src/sys/kern/subr_pool.c log diff annotate
src/sys/sys/pool.h log diff annotate
message Unlock sysctl_dopool().

sysctl_dopool() only delivers pool(9) statistics, moreover it already
relies on pool(9) related locks, so it is mp-safe as is. It relies on
`pool_lock' rwlock(9) to make `pp' pool pointer dereference safe, so
copyout()s, M_WAITOK malloc()s and yeld() calls happen locked too.
Introduce `pr_refcnt' reference counter to make them lockless.

ok dlg