nvme/fio_plugin: fix nvme fio always reporting success
status code and type is inspected and reported Fix issue #1893 Signed-off-by: Monica Kenguva <monica.kenguva@intel.com> Change-Id: I6f181d8c9464182b23c658f4c268b900398fd751 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7567 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
1f5364e821
commit
204e6278d4
@ -915,6 +915,10 @@ static void spdk_fio_completion_cb(void *ctx, const struct spdk_nvme_cpl *cpl)
|
||||
}
|
||||
}
|
||||
|
||||
if (spdk_nvme_cpl_is_error(cpl)) {
|
||||
fio_req->io->error = EIO;
|
||||
}
|
||||
|
||||
assert(fio_thread->iocq_count < fio_thread->iocq_size);
|
||||
fio_thread->iocq[fio_thread->iocq_count++] = fio_req->io;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user