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
Parents
rS348843: There are times when a len==0 parameter to mmap is okay. But on a
Branches
Unknown
Tags
Unknown