PERFORCE change 116708 for review

Scott Long scottl at FreeBSD.org
Tue Mar 27 22:42:29 UTC 2007


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

Change 116708 by scottl at scottl-x64 on 2007/03/27 22:41:28

	Fix a couple of accidents.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/cam/cam_periph.c#17 edit
.. //depot/projects/scottl-camlock/src/sys/cam/scsi/scsi_da.c#27 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/cam/cam_periph.c#17 (text+ko) ====

@@ -849,9 +849,9 @@
 	struct cam_sim *sim;
 	int error;
  
-	mtx_assert(sim->mtx, MA_OWNED);
 	error = 0;
 	sim = xpt_path_sim(ccb->ccb_h.path);
+	mtx_assert(sim->mtx, MA_OWNED);
 
 	/*
 	 * If the user has supplied a stats structure, and if we understand

==== //depot/projects/scottl-camlock/src/sys/cam/scsi/scsi_da.c#27 (text+ko) ====

@@ -743,7 +743,7 @@
 	 * Schedule ourselves for performing the work.
 	 */
 	xpt_schedule(periph, /* XXX priority */1);
-	cam_periph_lock(periph);
+	cam_periph_unlock(periph);
 
 	return;
 }


More information about the p4-projects mailing list