diff --git a/lib/nvmf/rdma.c b/lib/nvmf/rdma.c index f4081c3b9..40eb9eefc 100644 --- a/lib/nvmf/rdma.c +++ b/lib/nvmf/rdma.c @@ -949,7 +949,7 @@ nvmf_check_rdma_completions(struct spdk_nvmf_conn *conn) if (wc.status) { SPDK_TRACELOG(SPDK_TRACE_RDMA, "CQ completion error status %d (%s), exiting handler\n", wc.status, ibv_wc_status_str(wc.status)); - break; + return -1; } switch (wc.opcode) {