]> err.no Git - linux-2.6/commitdiff
IB/iser: Start connection after enabling iSER
authorErez Zilber <erezz@voltaire.com>
Sun, 22 Oct 2006 08:28:38 +0000 (10:28 +0200)
committerRoland Dreier <rolandd@cisco.com>
Tue, 31 Oct 2006 04:52:50 +0000 (20:52 -0800)
When a connection is started (a new connection or a recovered one),
iSER should prepare its resources for full-featured mode and only then
notify the iSCSI layer that it is ready to start queueing commands.

Signed-off-by: Erez Zilber <erezz@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/iser/iscsi_iser.c

index eb6f98d822899bcf71ab05ffd376a835dcc3e89f..9b2041e25d593978c183cedd04999368dfeb140b 100644 (file)
@@ -363,11 +363,11 @@ iscsi_iser_conn_start(struct iscsi_cls_conn *cls_conn)
        struct iscsi_conn *conn = cls_conn->dd_data;
        int err;
 
-       err = iscsi_conn_start(cls_conn);
+       err = iser_conn_set_full_featured_mode(conn);
        if (err)
                return err;
 
-       return iser_conn_set_full_featured_mode(conn);
+       return iscsi_conn_start(cls_conn);
 }
 
 static struct iscsi_transport iscsi_iser_transport;