HomeFreeBSD

proc: when exiting move to zombproc before taking proctree

Description

proc: when exiting move to zombproc before taking proctree

The kernel was already doing this prior to r329615. It was changed
to reduce contention on allproc. However, introduction of pidhash
locks and removal of proctree -> allproc ordering from fork thanks
to bitmaps fixed things enough to make this change pessimal.

waitpid takes proctree on each call and this change (now) causes
avoidable stalls if allproc is held.

Sponsored by: The FreeBSD Foundation

Details

Provenance
mjgAuthored on
Parents
rS341684: Manage process-related IDs with bitmaps
Branches
Unknown
Tags
Unknown