svn commit: r251846 - stable/9/sys/cam/ata

Alexander Motin mav at FreeBSD.org
Mon Jun 17 14:21:32 UTC 2013


Author: mav
Date: Mon Jun 17 14:21:31 2013
New Revision: 251846
URL: http://svnweb.freebsd.org/changeset/base/251846

Log:
  MFC r249205:
  Replicate r245306 from SCSI to ATA.  The problem didn't appear so far,
  covered by multilevel freeze mechanism, but it is better to be safe.

Modified:
  stable/9/sys/cam/ata/ata_da.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/cam/ata/ata_da.c
==============================================================================
--- stable/9/sys/cam/ata/ata_da.c	Mon Jun 17 13:02:39 2013	(r251845)
+++ stable/9/sys/cam/ata/ata_da.c	Mon Jun 17 14:21:31 2013	(r251846)
@@ -657,6 +657,9 @@ adaschedule(struct cam_periph *periph)
 	struct ada_softc *softc = (struct ada_softc *)periph->softc;
 	uint32_t prio;
 
+	if (softc->state != ADA_STATE_NORMAL)
+		return;
+
 	/* Check if cam_periph_getccb() was called. */
 	prio = periph->immediate_priority;
 


More information about the svn-src-all mailing list