Handle RB_POWERCYCLE in ada driver

Allow the disks to be spun down when doing a POWERCYCLE as well as
POWEROFF.

Sponsored by: Netflix
This commit is contained in:
Warner Losh 2017-10-25 15:30:48 +00:00
parent 7d41b6f078
commit 6a9fbe3a70

View File

@ -3513,7 +3513,7 @@ adashutdown(void *arg, int howto)
adaflush();
if (ada_spindown_shutdown != 0 &&
(howto & (RB_HALT | RB_POWEROFF)) != 0)
(howto & (RB_HALT | RB_POWEROFF | RB_POWERCYCLE)) != 0)
adaspindown(ATA_STANDBY_IMMEDIATE, 0);
}