diff options
Diffstat (limited to 'sys/dev/nvme/nvme_test.c')
-rw-r--r-- | sys/dev/nvme/nvme_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/nvme/nvme_test.c b/sys/dev/nvme/nvme_test.c index 4177227..93e2ed9 100644 --- a/sys/dev/nvme/nvme_test.c +++ b/sys/dev/nvme/nvme_test.c @@ -172,14 +172,14 @@ nvme_ns_bio_test(void *arg) } static void -nvme_ns_io_test_cb(void *arg, const struct nvme_completion *status) +nvme_ns_io_test_cb(void *arg, const struct nvme_completion *cpl) { struct nvme_io_test_thread *tth = arg; struct timeval t; tth->io_completed++; - if (status->sf_sc || status->sf_sct) { + if (nvme_completion_is_error(cpl)) { printf("%s: error occurred\n", __func__); wakeup_one(tth); return; |