summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2019-12-31 22:57:08 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2019-12-31 22:57:08 +0000
commita798abaf0b8a82288a72bced3f56166c0f689d38 (patch)
tree32e2927dbe045f468dc3caa4c12866735c106257 /sys/dev/ic
parent231f4faeb2563a707971e6b18db416cee8e72062 (diff)
convert infinite msleep(9) to msleep_nsec(9)
ok mpi@ bluhm@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/qla.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/qla.c b/sys/dev/ic/qla.c
index 9ab8a2f4603..f0f9aec9342 100644
--- a/sys/dev/ic/qla.c
+++ b/sys/dev/ic/qla.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qla.c,v 1.57 2019/08/20 22:31:28 krw Exp $ */
+/* $OpenBSD: qla.c,v 1.58 2019/12/31 22:57:07 jsg Exp $ */
/*
* Copyright (c) 2011 David Gwynne <dlg@openbsd.org>
@@ -1148,8 +1148,8 @@ qla_mbox(struct qla_softc *sc, int maskin)
mtx_enter(&sc->sc_mbox_mtx);
sc->sc_mbox_pending = 1;
while (sc->sc_mbox_pending == 1) {
- msleep(sc->sc_mbox, &sc->sc_mbox_mtx, PRIBIO,
- "qlambox", 0);
+ msleep_nsec(sc->sc_mbox, &sc->sc_mbox_mtx, PRIBIO,
+ "qlambox", INFSLP);
}
result = sc->sc_mbox[0];
sc->sc_mbox_pending = 0;