test/fuzz: fix nvmf fuzzer for AERs.

Something changed about the way we support
AERs in the target. Now, the AER commands remain
queued in the target side causing the fuzzer to
think it is timed out.

Signed-off-by: Seth Howell <seth.howell@intel.com>
Change-Id: I8e892a11d9922e84cd7a09e6adc8b69b6db4e8d2
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3453
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Community-CI: Mellanox Build Bot
This commit is contained in:
Seth Howell 2020-07-20 18:27:02 -07:00 committed by Tomasz Zawadzki
parent 7192849ed2
commit f8cf17f58e

View File

@ -456,7 +456,9 @@ submit_qp_cmds(struct nvme_fuzz_ns *ns, struct nvme_fuzz_qp *qp)
while ((qp->submitted_cmd_counter < g_cmd_array_size || g_cmd_array_size == 0) &&
!TAILQ_EMPTY(&qp->free_ctx_objs)) {
ctx = TAILQ_FIRST(&qp->free_ctx_objs);
prep_nvme_cmd(ns, qp, ctx);
do {
prep_nvme_cmd(ns, qp, ctx);
} while (qp->is_admin && ctx->cmd.opc == SPDK_NVME_OPC_ASYNC_EVENT_REQUEST);
TAILQ_REMOVE(&qp->free_ctx_objs, ctx, link);
TAILQ_INSERT_HEAD(&qp->outstanding_ctx_objs, ctx, link);