Get rid of a nagging call to sleep() which crept back in.
authorGarrett Wollman <wollman@FreeBSD.org>
Sun, 20 Mar 1994 00:30:59 +0000 (00:30 +0000)
committerGarrett Wollman <wollman@FreeBSD.org>
Sun, 20 Mar 1994 00:30:59 +0000 (00:30 +0000)
sys/scsi/scsi_ioctl.c

index 08d8a3a..a52b3a5 100644 (file)
@@ -199,7 +199,7 @@ void scsistrategy(struct buf *bp)
        s = splbio();
        while(!(bp->b_flags & B_DONE))
        {
        s = splbio();
        while(!(bp->b_flags & B_DONE))
        {
-               sleep(bp,PRIBIO);
+               tsleep((caddr_t)bp, PRIBIO, "scsistrat", 0);
        }
        splx(s);
        SC_DEBUG(sc_link,SDEV_DB3,("back from sleep\n"));
        }
        splx(s);
        SC_DEBUG(sc_link,SDEV_DB3,("back from sleep\n"));