HomeFreeBSD

jail: Improve locking when removing prisons

Description

jail: Improve locking when removing prisons

Change the flow of prison_deref() so it doesn't let go of allprison_lock
until it's completely done using it (except for a possible drop as part
of an upgrade on its first try).

Differential Revision: https://reviews.freebsd.org/D28458
MFC after: 3 days

Details

Provenance
jamieAuthored on Feb 20 2021, 10:38 PM
Differential Revision
D28458: Better locking in prison_deref, and hide invalid prisons.
Parents
R10:a8e431e1537d: PRR: use accurate rfc6675_pipe when enabled
Branches
Unknown
Tags
Unknown