diff options
| author | Justin Hibbits <jhibbits@FreeBSD.org> | 2025-12-01 16:50:30 +0000 |
|---|---|---|
| committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2025-12-01 16:53:00 +0000 |
| commit | 882821b78faecaffdecac8fdcd943ee2e1053ee7 (patch) | |
| tree | ff4f64e0a8c044e75e71bc737398ebb21b42579a | |
| parent | 17fd7780fbbb59932b72b5dac6bda93f67743b83 (diff) | |
kexec: Change shutdown handler priority
The kexec shutdown handler should run after everything else, but before
the other platform shutdown handlers. With (SHUTDOWN_PRI_DEFAULT - 150)
priority it would run before anything else, including all the device
shutdown handlers. Change to (SHUTDOWN_PRI_LAST - 150) where it
belongs.
Sponsored by: Hewlett Packard Enterprise
| -rw-r--r-- | sys/kern/kern_kexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_kexec.c b/sys/kern/kern_kexec.c index 2efea7dcf9a7..86ee9da9a606 100644 --- a/sys/kern/kern_kexec.c +++ b/sys/kern/kern_kexec.c @@ -314,7 +314,7 @@ kern_kexec_load(struct thread *td, u_long entry, u_long nseg, if (kexec_reboot_handler == NULL) kexec_reboot_handler = EVENTHANDLER_REGISTER(shutdown_final, kexec_reboot, NULL, - SHUTDOWN_PRI_DEFAULT - 150); + SHUTDOWN_PRI_LAST - 150); } else { if (kexec_reboot_handler != NULL) EVENTHANDLER_DEREGISTER(shutdown_final, kexec_reboot_handler); |
