svn commit: r321606 - head/sys/cam/ata

Alexander Motin mav at FreeBSD.org
Thu Jul 27 07:28:30 UTC 2017


Author: mav
Date: Thu Jul 27 07:28:29 2017
New Revision: 321606
URL: https://svnweb.freebsd.org/changeset/base/321606

Log:
  adaasync(): Set ADA_STATE_WCACHE based on ADA_FLAG_CAN_WCACHE
  
  The attached patch lets adaasync() set ADA_STATE_WCACHE based on
  ADA_FLAG_CAN_WCACHE instead of ADA_FLAG_CAN_RAHEAD.
  
  This fixes a regression introduced in r300207 which changed
  the flag names.
  
  PR:		220948
  Submitted by:	Fabian Keil <fk at fabiankeil.de>
  Obtained from:	ElectroBSD
  MFC after:	1 week

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

Modified: head/sys/cam/ata/ata_da.c
==============================================================================
--- head/sys/cam/ata/ata_da.c	Thu Jul 27 06:26:15 2017	(r321605)
+++ head/sys/cam/ata/ata_da.c	Thu Jul 27 07:28:29 2017	(r321606)
@@ -1320,7 +1320,7 @@ adaasync(void *callback_arg, u_int32_t code,
 		xpt_action((union ccb *)&cgd);
 		if (ADA_RA >= 0 && softc->flags & ADA_FLAG_CAN_RAHEAD)
 			softc->state = ADA_STATE_RAHEAD;
-		else if (ADA_WC >= 0 && softc->flags & ADA_FLAG_CAN_RAHEAD)
+		else if (ADA_WC >= 0 && softc->flags & ADA_FLAG_CAN_WCACHE)
 			softc->state = ADA_STATE_WCACHE;
 		else if ((softc->flags & ADA_FLAG_CAN_LOG)
 		      && (softc->zone_mode != ADA_ZONE_NONE))


More information about the svn-src-head mailing list