1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-28 11:57:28 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=324989

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