HomeFreeBSD

Do not call PHOLD() while owning the allproc_lock sx.

Description

Do not call PHOLD() while owning the allproc_lock sx.

Otherwise the lock might recurse in faultin() if the process is
swapped out.

Reported by: zeising
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on
Parents
rS343723: i386: Do not ever store to other-CPU counter64 slot.
Branches
Unknown
Tags
Unknown