CVSROOT:        /cvs
Module name:    src
Changes by:     m...@cvs.openbsd.org    2025/06/10 02:56:21

Modified files:
        sys/kern       : kern_lock.c 

Log message:
mtx_enter(): use the number of CPUs as upper bound of the exponential backoff.

With the precendent value, 64, it was still possible to generate hangs on a
80 CPUs Ampere Altra when creating a lot of contention on a single mutex.

Using the number of found CPUs should also reduce latency on machines with
fewer CPUs.

ok kettenis@

Reply via email to