Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jul 2009 19:46:01 GMT
From:      Alexander Motin <mav@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 166596 for review
Message-ID:  <200907261946.n6QJk1T5037599@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

http://perforce.freebsd.org/chv.cgi?CH=166596

Change 166596 by mav@mav_mavbook on 2009/07/26 19:45:36

	Do not try to flush disks if we paniced inside CAM.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/cam/ata/ata_da.c#22 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/cam/ata/ata_da.c#22 (text+ko) ====

@@ -1075,6 +1075,9 @@
 	TAILQ_FOREACH(periph, &adadriver.units, unit_links) {
 		union ccb ccb;
 
+		/* If we paniced with lock held - not recurse here. */
+		if (cam_periph_owned(periph))
+			continue;
 		cam_periph_lock(periph);
 		softc = (struct ada_softc *)periph->softc;
 		/*



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