HomeFreeBSD

fsetown: Avoid process group lock recursion

Description

fsetown: Avoid process group lock recursion

Restore the pre-1d874ba4f8ba behaviour of disassociating the current
SIGIO recipient before looking up the specified process or process
group. This avoids a lock recursion in the scenario where a process
group is configured to receive SIGIO for an fd when it has already been
so configured.

Reported by: pho
Tested by: pho
Reviewed by: kib

(cherry picked from commit 7326e8589cc21431d62f25802eac7c5dd6f74122)

Details

Provenance
markjAuthored on Aug 28 2021, 7:50 PM
Parents
rGd8b1ffc8e222: fsetown: Simplify error handling
Branches
Unknown
Tags
Unknown