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:
parent
7d41b6f078
commit
6a9fbe3a70
@ -3513,7 +3513,7 @@ adashutdown(void *arg, int howto)
|
|||||||
|
|
||||||
adaflush();
|
adaflush();
|
||||||
if (ada_spindown_shutdown != 0 &&
|
if (ada_spindown_shutdown != 0 &&
|
||||||
(howto & (RB_HALT | RB_POWEROFF)) != 0)
|
(howto & (RB_HALT | RB_POWEROFF | RB_POWERCYCLE)) != 0)
|
||||||
adaspindown(ATA_STANDBY_IMMEDIATE, 0);
|
adaspindown(ATA_STANDBY_IMMEDIATE, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user