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:
imp 2017-10-25 15:30:48 +00:00
parent a46386815a
commit 369f9fa7ad

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);
}