aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/nvme.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c
index a9cbd2b..f3a16ce 100644
--- a/sys/dev/ic/nvme.c
+++ b/sys/dev/ic/nvme.c
@@ -279,6 +279,8 @@ nvme_poll_submit_cmd(struct nvme_queue *q, struct nvme_cmd cmd)
nvme_submit_cmd(q, cmd);
for (;;) {
+ tmr.msleep(100);
+
/*
* If the phase bit matches the most recently submitted
* command then the command has completed
@@ -294,7 +296,6 @@ nvme_poll_submit_cmd(struct nvme_queue *q, struct nvme_cmd cmd)
return -ETIME;
}
- tmr.msleep(150);
++spins;
}