[PATCH 1/2] iser: Clear tasks free list when closing the connection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <sagig@xxxxxxxxxxxx>
Signed-off-by: Roi Dayan <roid@xxxxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux