Warner Losh e7932420b0 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
2018-03-22 15:11:53 +00:00
..
2018-03-14 23:45:48 +00:00
2017-09-14 15:34:45 +00:00
2018-03-08 19:24:10 +00:00
2018-01-10 20:05:19 +00:00
2018-03-21 15:57:36 +00:00
2017-11-09 13:38:17 +00:00
2017-12-30 19:27:22 +00:00
2018-03-20 17:58:51 +00:00
2018-03-14 18:27:06 +00:00
2018-03-08 22:04:54 +00:00
2017-11-30 20:33:45 +00:00
2017-11-30 20:33:45 +00:00
2018-03-14 21:32:23 +00:00
2017-10-21 07:23:45 +00:00
2017-11-30 20:33:45 +00:00
2018-03-22 15:11:53 +00:00
2017-12-29 00:59:56 +00:00
2018-02-19 19:31:18 +00:00
2018-01-03 00:56:30 +00:00
2018-01-13 16:31:07 +00:00