Use mtx_init() to initialize stack-based mutexes
authorvisa <visa@openbsd.org>
Thu, 6 Jul 2023 10:17:43 +0000 (10:17 +0000)
committervisa <visa@openbsd.org>
Thu, 6 Jul 2023 10:17:43 +0000 (10:17 +0000)
commit4e4f5ce5df824245a88784d72d01c9b9dc18d0a5
treee30a6c40b3fd963b004fa80c3ce3434e7d24eaaf
parentdc2df9f71c3caaa89801d5a855853875ddbebf18
Use mtx_init() to initialize stack-based mutexes

mtx_init() ensures the mutex' lock_object has static storage duration.
This makes it safe to re-enable WITNESS with stack-based mutexes.

OK bluhm@ miod@
sys/dev/ic/mfi.c
sys/dev/ic/mpi.c
sys/dev/pci/mfii.c
sys/dev/pci/mpii.c
sys/scsi/scsi_base.c