Date: Fri, 13 Apr 2007 16:49:03 GMT From: Scott Long <scottl@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 118014 for review Message-ID: <200704131649.l3DGn3Jg093320@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=118014 Change 118014 by scottl@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704131649.l3DGn3Jg093320>