PERFORCE change 166596 for review

Alexander Motin mav at FreeBSD.org
Sun Jul 26 19:46:03 UTC 2009


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

Change 166596 by mav at 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;
 		/*


More information about the p4-projects mailing list