HomeFreeBSD

Always send STANDBY IMMEDIATE when shutting down

Description

Always send STANDBY IMMEDIATE when shutting down

To save SMART data and for a drive to understand that it's been nicely
shutdown, we need to send a STANDBY IMMEDIATE. Modify adaspindown to
use a local CCB on the stack. When we're panicing, used
xpt_polled_action rather than cam_periph_runccb so that we can SEND
IMMEDIATE after we've shutdown the scheduler.

Sponsored by: Netflix
Reviewed by: scottl@, gallatin@
Differential Revision: https://reviews.freebsd.org/D12799

Details

Provenance
impAuthored on
Differential Revision
D12799: Always send STANDBY IMMEDIATE when shutting down
Parents
rS325025: Make time we wait for a power cycle tunable.
Branches
Unknown
Tags
Unknown