HomeFreeBSD

hwpmc: fix load/unload race and vm map LOR

Description

hwpmc: fix load/unload race and vm map LOR

  • fix load/unload race by allocating the per-domain list structure at boot
  • fix long extant vm map LOR by replacing pmc_sx sx_slock with global_epoch to protect the liveness of elements of the pmc_ss_owners list

Reported by: pho
Approved by: sbruno

Details

Provenance
mmacyAuthored on
Parents
rS333595: epoch(9): allow sx locks to be held across epoch_wait()
Branches
Unknown
Tags
Unknown