nvmf: return error if wc status indicates error

If any completion indicates an error, we need to close the connection.

Change-Id: I50b30aa692ae121932f1baec32f713422ff415ed
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2016-07-07 13:50:12 -07:00
parent f8296a99c2
commit 5ca81749de

View File

@ -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) {