PERFORCE change 173322 for review
Alexander Motin
mav at FreeBSD.org
Mon Jan 18 15:42:22 UTC 2010
http://p4web.freebsd.org/chv.cgi?CH=173322
Change 173322 by mav at mav_mavtest on 2010/01/18 15:42:10
Freeze simq while doing reset.
Affected files ...
.. //depot/projects/scottl-camlock/src/sys/dev/siis/siis.c#35 edit
Differences ...
==== //depot/projects/scottl-camlock/src/sys/dev/siis/siis.c#35 (text+ko) ====
@@ -1411,6 +1411,7 @@
int i, retry = 0, sata_rev;
uint32_t val;
+ xpt_freeze_simq(ch->sim, 1);
if (bootverbose)
device_printf(dev, "SIIS reset...\n");
if (!ch->readlog && !ch->recovery)
@@ -1476,6 +1477,7 @@
"SIIS reset done: phy reset found no device\n");
/* Tell the XPT about the event */
xpt_async(AC_BUS_RESET, ch->path, NULL);
+ xpt_release_simq(ch->sim, TRUE);
return;
}
/* Wait for clearing busy status. */
@@ -1506,6 +1508,7 @@
device_printf(dev, "SIIS reset done: devices=%08x\n", ch->devices);
/* Tell the XPT about the event */
xpt_async(AC_BUS_RESET, ch->path, NULL);
+ xpt_release_simq(ch->sim, TRUE);
}
static int
More information about the p4-projects
mailing list