summaryrefslogtreecommitdiff
path: root/sys/dev/pv/if_hvn.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pv/if_hvn.c')
-rw-r--r--sys/dev/pv/if_hvn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/if_hvn.c b/sys/dev/pv/if_hvn.c
index ec96bc788d0..d497f0bf631 100644
--- a/sys/dev/pv/if_hvn.c
+++ b/sys/dev/pv/if_hvn.c
@@ -1127,8 +1127,8 @@ hvn_alloc_cmd(struct hvn_softc *sc)
mtx_enter(&sc->sc_cntl_fqlck);
while ((rc = TAILQ_FIRST(&sc->sc_cntl_fq)) == NULL)
- msleep(&sc->sc_cntl_fq, &sc->sc_cntl_fqlck,
- PRIBIO, "nvsalloc", 1);
+ msleep_nsec(&sc->sc_cntl_fq, &sc->sc_cntl_fqlck,
+ PRIBIO, "nvsalloc", INFSLP);
TAILQ_REMOVE(&sc->sc_cntl_fq, rc, rc_entry);
mtx_leave(&sc->sc_cntl_fqlck);
return (rc);