PERFORCE change 118014 for review

Scott Long scottl at FreeBSD.org
Fri Apr 13 16:49:04 UTC 2007


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

Change 118014 by scottl at scottl-y1 on 2007/04/13 16:48:19

	Change the last instances of tsleep to msleep.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/cam/scsi/scsi_targ_bh.c#7 edit
.. //depot/projects/scottl-camlock/src/sys/cam/scsi/scsi_target.c#11 edit

Differences ...

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

@@ -447,7 +447,7 @@
 		/* FALLTHROUGH */
 	default:
 		/* XXX Wait for callback of targbhdislun() */
-		tsleep(softc, PRIBIO, "targbh", hz/2);
+		msleep(softc, periph->sim->mtx, PRIBIO, "targbh", hz/2);
 		free(softc, M_SCSIBH);
 		break;
 	}

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

@@ -1083,7 +1083,7 @@
 
 	/* If we aborted at least one pending CCB ok, wait for it. */
 	if (cab.ccb_h.status == CAM_REQ_CMP) {
-		tsleep(&softc->pending_ccb_queue,
+		msleep(&softc->pending_ccb_queue, softc->path->sim->mtx,
 		       PRIBIO | PCATCH, "tgabrt", 0);
 	}
 


More information about the p4-projects mailing list