diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2020-11-19 09:09:19 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2020-11-19 09:09:19 +0000 |
commit | e93ce250f258c8e6ec866fdf04f3543efcda888c (patch) | |
tree | 48be30745250072628ecfdb820492afc09cefd24 /sys/dev/xen | |
parent | 9e3d4a57bdd370549f520682f56e78341400865e (diff) | |
download | src-e93ce250f258c8e6ec866fdf04f3543efcda888c.tar.gz src-e93ce250f258c8e6ec866fdf04f3543efcda888c.zip |
MFC r367398:
Suspend all writeable local filesystems on power suspend.
Notes
Notes:
svn path=/stable/12/; revision=367836
Diffstat (limited to 'sys/dev/xen')
-rw-r--r-- | sys/dev/xen/control/control.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/xen/control/control.c b/sys/dev/xen/control/control.c index 6c71e67eda05..495083e24656 100644 --- a/sys/dev/xen/control/control.c +++ b/sys/dev/xen/control/control.c @@ -113,6 +113,7 @@ __FBSDID("$FreeBSD$"); #include <sys/filedesc.h> #include <sys/kdb.h> #include <sys/module.h> +#include <sys/mount.h> #include <sys/namei.h> #include <sys/proc.h> #include <sys/reboot.h> @@ -204,6 +205,7 @@ xctrl_suspend() xs_lock(); stop_all_proc(); xs_unlock(); + suspend_all_fs(); EVENTHANDLER_INVOKE(power_suspend); #ifdef EARLY_AP_STARTUP @@ -317,6 +319,7 @@ xctrl_suspend() } #endif + resume_all_fs(); resume_all_proc(); EVENTHANDLER_INVOKE(power_resume); |