Page MenuHomeFreeBSD

Always send STANDBY IMMEDIATE when shutting down
ClosedPublic

Authored by imp on Oct 26 2017, 6:49 PM.
Tags
None
Referenced Files
F117407072: D12799.diff
Sat, May 17, 9:49 PM
Unknown Object (File)
Apr 11 2025, 2:15 PM
Unknown Object (File)
Mar 6 2025, 4:25 PM
Unknown Object (File)
Feb 1 2025, 5:04 PM
Unknown Object (File)
Feb 1 2025, 9:05 AM
Unknown Object (File)
Jan 25 2025, 4:41 AM
Unknown Object (File)
Jan 25 2025, 4:18 AM
Unknown Object (File)
Dec 28 2024, 11:26 PM
Subscribers
None

Details

Summary

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

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Oct 26 2017, 6:52 PM
sys/cam/ata/ata_da.c
3519 ↗(On Diff #34367)

This should be adaerror()

imp marked an inline comment as done.Oct 26 2017, 7:49 PM

Will fix the cosmetics before push.

This revision was automatically updated to reflect the committed changes.