summaryrefslogtreecommitdiff
path: root/sys/dev/vscsi.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2019-12-31 10:05:34 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2019-12-31 10:05:34 +0000
commit9342e91df4a806cfd8bdf1bdabd73eab5c7a56db (patch)
tree5e831ba5086ad8aadd757e8497ff9fd18e72b601 /sys/dev/vscsi.c
parent6716328d3f8e7e5092b5ad41628a56775d32e1be (diff)
Convert infinite sleeps to {m,t}sleep_nsec(9).
ok kn@
Diffstat (limited to 'sys/dev/vscsi.c')
-rw-r--r--sys/dev/vscsi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/vscsi.c b/sys/dev/vscsi.c
index 8fa7598dfa8..647c2b531ac 100644
--- a/sys/dev/vscsi.c
+++ b/sys/dev/vscsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vscsi.c,v 1.42 2019/12/19 12:04:38 reyk Exp $ */
+/* $OpenBSD: vscsi.c,v 1.43 2019/12/31 10:05:32 mpi Exp $ */
/*
* Copyright (c) 2008 David Gwynne <dlg@openbsd.org>
@@ -199,7 +199,8 @@ vscsi_cmd(struct scsi_xfer *xs)
if (polled) {
mtx_enter(&sc->sc_poll_mtx);
while (ccb->ccb_xs != NULL)
- msleep(ccb, &sc->sc_poll_mtx, PRIBIO, "vscsipoll", 0);
+ msleep_nsec(ccb, &sc->sc_poll_mtx, PRIBIO, "vscsipoll",
+ INFSLP);
mtx_leave(&sc->sc_poll_mtx);
scsi_done(xs);
}