CVSROOT:        /cvs
Module name:    src
Changes by:     m...@cvs.openbsd.org    2025/08/06 08:00:33

Modified files:
        sys/conf       : param.c 
        sys/kern       : kern_sysctl.c uipc_mbuf.c 
        sys/net        : pf_ioctl.c 

Log message:
Unlock the KERN_MAXCLUSTERS case of kern_sysctl().

The `nmbclust' and `mbuf_mem_limit' modified by KERN_MAXCLUSTERS case
belong to the non intersecting paths. The only `nmbclust' user is the
DIOCSETLIMIT case of pfioctl(), which only checks is against passed
fragments reference count sets the hard limit on corresponding pf(4)
pool. Meanwhile the kern_sysctl() does the `nmbclust' update, the
`nmbclust' based `mbuf_mem_limit' calculation and mbuf(9) and mbuf(9)
clusters pools wakeup. So only update path of kern_sysctl() should be
serialized.

ok bluhm

Reply via email to