Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 2010 15:42:21 GMT
From:      Alexander Motin <mav@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 173322 for review
Message-ID:  <201001181542.o0IFgLhi076373@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=173322

Change 173322 by mav@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



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