PERFORCE change 118018 for review

Scott Long scottl at FreeBSD.org
Fri Apr 13 17:15:45 UTC 2007


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

Change 118018 by scottl at scottl-y1 on 2007/04/13 17:11:24

	Fix compile errors from the last version.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/cam/scsi/scsi_target.c#12 edit

Differences ...

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

@@ -1051,6 +1051,7 @@
 	struct targ_cmd_descr   *descr;
 	struct ccb_abort	 cab;
 	struct ccb_hdr		*ccb_h;
+	struct cam_sim		*sim;
 
 	CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH, ("abort_all_pending\n"));
 
@@ -1083,7 +1084,8 @@
 
 	/* If we aborted at least one pending CCB ok, wait for it. */
 	if (cab.ccb_h.status == CAM_REQ_CMP) {
-		msleep(&softc->pending_ccb_queue, softc->path->sim->mtx,
+		sim = xpt_path_sim(softc->path);
+		msleep(&softc->pending_ccb_queue, sim->mtx,
 		       PRIBIO | PCATCH, "tgabrt", 0);
 	}
 


More information about the p4-projects mailing list