Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Oct 2017 15:30:49 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324989 - head/sys/cam/ata
Message-ID:  <201710251530.v9PFUnwq020693@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Wed Oct 25 15:30:48 2017
New Revision: 324989
URL: https://svnweb.freebsd.org/changeset/base/324989

Log:
  Handle RB_POWERCYCLE in ada driver
  
  Allow the disks to be spun down when doing a POWERCYCLE as well as
  POWEROFF.
  
  Sponsored by: Netflix

Modified:
  head/sys/cam/ata/ata_da.c

Modified: head/sys/cam/ata/ata_da.c
==============================================================================
--- head/sys/cam/ata/ata_da.c	Wed Oct 25 15:30:44 2017	(r324988)
+++ head/sys/cam/ata/ata_da.c	Wed Oct 25 15:30:48 2017	(r324989)
@@ -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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710251530.v9PFUnwq020693>