PERFORCE change 173323 for review

Alexander Motin mav at FreeBSD.org
Mon Jan 18 15:46:26 UTC 2010


http://p4web.freebsd.org/chv.cgi?CH=173323

Change 173323 by mav at mav_mavtest on 2010/01/18 15:45:55

	Freeze simq while doing reset.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/dev/ata/ata-all.c#48 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/dev/ata/ata-all.c#48 (text+ko) ====

@@ -403,6 +403,7 @@
     /* kick off requests on the queue */
     ata_start(dev);
 #else
+	xpt_freeze_simq(ch->sim, 1);
 	if ((request = ch->running)) {
 		ch->running = NULL;
 		if (ch->state == ATA_ACTIVE)
@@ -417,6 +418,7 @@
 	ATA_RESET(dev);
 	/* Tell the XPT about the event */
 	xpt_async(AC_BUS_RESET, ch->path, NULL);
+	xpt_release_simq(ch->sim, TRUE);
 #endif
 	return(0);
 }


More information about the p4-projects mailing list