iser: destroy communication events channel on release

Signed-off-by: wanghonghao <wanghonghao@bytedance.com>
This commit is contained in:
wanghonghao
2020-04-06 20:27:03 +08:00
parent b4b0a79164
commit cdcb35e6c6

View File

@@ -462,6 +462,11 @@ iser_conn_release(struct iser_conn *iser_conn)
iser_conn->cma_id = NULL;
}
if (iser_conn->cma_channel != NULL) {
rdma_destroy_event_channel(iser_conn->cma_channel);
iser_conn->cma_channel = NULL;
}
return;
}