HomeFreeBSD

shutdown: unmount filesystems after swapoff

Description

shutdown: unmount filesystems after swapoff

Swap on file requires operational underlying mount, otherwise
swapoff_all() is guaranteed to panic due to the default strategy VOP for
reclaimed vnodes.

Reported and tested by: peterj
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D33147

Details

Provenance
kibAuthored on Nov 28 2021, 1:52 AM
Reviewer
markj
Differential Revision
D33147: Make swapoff more robust, when using swap into file
Parents
rG0190c38b9dfa: swapoff_one(): only check free pages count manually turning swap off
Branches
Unknown
Tags
Unknown