HomeFreeBSD

Revert r331298

Description

Revert r331298

Normally, shutdown_nice() just signals init. However, sometimes it
calls kern_reboot directly. For that case, r331298 dropped the Giant
lock before calling it. This turns out to be incorrect for the more
common case where init exists and we just signal it. Restore the old
behavior. The direct call to kern_reboot() doesn't sync buffers to the
disk, so should work with Giant held, so we don't need to drop locks
here for that.

Noticed by: bde@
Sponsored by: Netflix

Details

Provenance
impAuthored on
Parents
rS331358: tftpd: misc Coverity cleanup in the tests
Branches
Unknown
Tags
Unknown