From 183ef8273120ca4a9055a803a2e2e5e1be835fd1 Mon Sep 17 00:00:00 2001 From: Israel Rukshin Date: Wed, 17 Aug 2016 07:28:43 +0000 Subject: [PATCH] isert: fix isert conn cleanup when rdma_accept fails If rdma_accept fails the state of the qp is modified to error and all posted recieve buffers will be flushed and because of the flush the isert conn teardown flow will start. Signed-off-by: Israel Rukshin git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6956 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/isert-scst/iser_rdma.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/iscsi-scst/kernel/isert-scst/iser_rdma.c b/iscsi-scst/kernel/isert-scst/iser_rdma.c index 600b5182a..7debe6541 100644 --- a/iscsi-scst/kernel/isert-scst/iser_rdma.c +++ b/iscsi-scst/kernel/isert-scst/iser_rdma.c @@ -1524,9 +1524,6 @@ out: return err; fail_accept: - set_bit(ISERT_CONNECTION_ABORTED, &isert_conn->flags); - isert_conn_free(isert_conn); - isert_conn_free(isert_conn); isert_sched_conn_free(isert_conn); err = 0; goto out;