]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iser-target: Remove impossible condition from isert_wait_conn
authorJenny Derzhavetz <jennyf@mellanox.com>
Wed, 24 Feb 2016 17:24:03 +0000 (19:24 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 5 Mar 2016 07:35:47 +0000 (23:35 -0800)
We can never get to isert_wait_conn in INIT state anymore, so
get rid of this condition.

Signed-off-by: Jenny Derzhavetz <jennyf@mellanox.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c

index 01d37260a8d84ab03dfbc197755ea9766efd56d2..21f4f44de3ac19b5ef17acddaea55326415ea5d7 100644 (file)
@@ -3362,14 +3362,6 @@ static void isert_wait_conn(struct iscsi_conn *conn)
        isert_info("Starting conn %p\n", isert_conn);
 
        mutex_lock(&isert_conn->mutex);
-       /*
-        * Only wait for wait_comp_err if the isert_conn made it
-        * into full feature phase..
-        */
-       if (isert_conn->state == ISER_CONN_INIT) {
-               mutex_unlock(&isert_conn->mutex);
-               return;
-       }
        isert_conn_terminate(isert_conn);
        mutex_unlock(&isert_conn->mutex);