Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Mar 2007 22:42:27 GMT
From:      Scott Long <scottl@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 116708 for review
Message-ID:  <200703272242.l2RMgRkM043005@repoman.freebsd.org>

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

Change 116708 by scottl@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;
 }



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