[PATCH 1/2] iser: Clear tasks free list when closing the connection
Sagi Grimberg <[email protected]> Wed, 20 May 2015 11:45:55 +0300
| Newsgroups | org.kernel.vger.stgt |
|---|---|
| Message-ID | <[email protected]> |
In discovery sessions, iser has posted the RX descriptors and cancelled the event that enabled it to consume the flushes. So, just clear the tasks free list at conn_close too (safe). Signed-off-by: Sagi Grimberg <[email protected]> Signed-off-by: Roi Dayan <[email protected]> --- usr/iscsi/iser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr/iscsi/iser.c b/usr/iscsi/iser.c index 9519862..3925de3 100644 --- a/usr/iscsi/iser.c +++ b/usr/iscsi/iser.c @@ -1279,6 +1279,7 @@ void iser_conn_close(struct iser_conn *conn) if (err) eprintf("conn:%p rdma_disconnect failed, %m\n", &conn->h); + iser_ib_clear_tx_list(conn); list_del(&conn->conn_list); tgt_remove_sched_event(&conn->sched_buf_alloc); -- 1.8.4.3