summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-04-13 11:54:34 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-04-13 11:54:34 +0000
commit1a7b7ee98462464d42039a6cd4b99318976ab82f (patch)
treeeaee6c0d96cf2ffb2703e50a1ff3384c018c5ed7 /sys/dev/ic
parent14044d83adaff207d096dcab8d43ddaccf16bed3 (diff)
poll for command completion on the cqe itll be of calling nvme_intr
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/nvme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c
index 8212174552b..c35c7dd35ac 100644
--- a/sys/dev/ic/nvme.c
+++ b/sys/dev/ic/nvme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nvme.c,v 1.19 2016/04/13 11:51:56 dlg Exp $ */
+/* $OpenBSD: nvme.c,v 1.20 2016/04/13 11:54:33 dlg Exp $ */
/*
* Copyright (c) 2014 David Gwynne <dlg@openbsd.org>
@@ -375,7 +375,7 @@ nvme_poll(struct nvme_softc *sc, struct nvme_queue *q, struct nvme_ccb *ccb,
nvme_q_submit(sc, q, ccb, nvme_poll_fill);
while (!ISSET(state.c.flags, htole16(NVME_CQE_PHASE))) {
- if (nvme_intr(sc) == 0)
+ if (nvme_q_complete(sc, q) == 0)
delay(10);
/* XXX no timeout? */