CVSROOT: /cvs Module name: src Changes by: [email protected] 2025/07/17 11:30:47
Modified files:
sys/kern : uipc_mbuf.c
Log message:
While modifying `mq_maxlen' through sysctl_mq(), use "oldval != newval"
style to avoid `mq_mtx' mutex(9) acquisition if `mq_maxlen' was not
changed. `mq_maxlen' has type of unsigned int, but protected with `mq_mtx'
mutex(9), so use READ_ONCE() lockless load to ensure that `mq_maxlen'
actually loaded to `oldval'.
ok bluhm
