HomeFreeBSD

killpg(): more carefully avoid LoR

Description

killpg(): more carefully avoid LoR

otherwise we could end up with the livelock. When pg_killsx trylock
failed, ensure that we do wait for lock availability before retry.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on Jul 7 2023, 5:19 PM
Parents
rGed84cb591df7: sys_setpgid(): style, remove extra ()s
Branches
Unknown
Tags
Unknown