]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Suspend all writeable local filesystems on power suspend.
authorkib <kib@FreeBSD.org>
Thu, 5 Nov 2020 20:52:49 +0000 (20:52 +0000)
committerkib <kib@FreeBSD.org>
Thu, 5 Nov 2020 20:52:49 +0000 (20:52 +0000)
commitec79f43b0ff90fd24dee5391604ec49eb751347f
treeb495fb0ec206d192cfac4c57740b7b0fd2e09063
parent9ea49f3f6d58362cb92c95238633456dbb1b3da7
Suspend all writeable local filesystems on power suspend.

This ensures that no writes are pending in memory, either metadata or
user data, but not including dirty pages not yet converted to fs writes.

Only filesystems declared local are suspended.

Note that this does not guarantee absence of the metadata errors or
leaks if resume is not done: for instance, on UFS unlinked but opened
inodes are leaked and require fsck to gc.

Reviewed by: markj
Discussed with: imp
Tested by: imp (previous version), pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D27054
sys/dev/acpica/acpi.c
sys/dev/xen/control/control.c
sys/kern/vfs_mount.c
sys/sys/mount.h