nvmf: check status of nvmf_check_rdma_completions
If the transport poll routine fails, we need to close the connection. Change-Id: Ie534b0f05e6642c31e0450865e309a784abbe744 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
d63007e5ca
commit
6419922466
@ -390,7 +390,10 @@ spdk_nvmf_conn_do_work(void *arg)
|
||||
}
|
||||
|
||||
/* process pending RDMA completions */
|
||||
nvmf_check_rdma_completions(conn);
|
||||
if (nvmf_check_rdma_completions(conn) < 0) {
|
||||
SPDK_ERRLOG("Transport poll failed for conn %p; closing connection\n", conn);
|
||||
conn->state = CONN_STATE_EXITING;
|
||||
}
|
||||
|
||||
if (conn->state == CONN_STATE_EXITING ||
|
||||
conn->state == CONN_STATE_FABRIC_DISCONNECT) {
|
||||
|
Loading…
Reference in New Issue
Block a user