Transport messages can be safely and completely cleaned up as
long as low level connection is valid
Signed-off-by: Vu Pham <vu@mellanox.com>
struct xio_msg *msg = xrsp->dequeue();
struct xio_msg *next_msg = NULL;
int code;
- if (unlikely(!xrsp->xcon->conn || !xrsp->xcon->is_connected())) {
+ if (unlikely(!xrsp->xcon->conn)) {
// NOTE: msg is not safe to dereference if the connection was torn down
xrsp->xcon->msg_release_fail(msg, ENOTCONN);
}