Bug #1271109 - Possible use after release

kref_put may call xio_conn_delayed_close which may
free the conn, however conn is referenced later.

resolution: kref_put was moved to funcion end

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
xio_mr_list_free used memory after it was released.
resolution: protecting mr list upon deregisterion

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
storing connections in context connections list.

This allows searching for connections in fast path  without need to lock
previously, connection was searched within the session's connections list
since the session is shared by threads, a lock was needed.

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
no need for falg when adding wake up event to epoll

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
removed unused structures

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>