HomeFreeBSD

powerpc/powernv: Reduce the scope of the sensor guarding mutex

Description

powerpc/powernv: Reduce the scope of the sensor guarding mutex

vmem_xalloc() cannot be called while holding a nonblocking mutex, warned
by WITNESS. The lock may not be necessary in general, but it avoids
superfluous concurrent OPAL calls for the same sensor.

Reported by: pkubaj

Details

Provenance
jhibbitsAuthored on Jun 10 2019, 3:16 AM
Parents
rG97220a279fb6: There are times when a len==0 parameter to mmap is okay. But on a
Branches
Unknown
Tags
Unknown

Event Timeline