Skip to content

Commit 2e7a742

Browse files
Erez ZilberRoland Dreier
authored andcommitted
IB/iser: Start connection after enabling iSER
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>
1 parent ae99a78 commit 2e7a742

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/infiniband/ulp/iser/iscsi_iser.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,11 @@ iscsi_iser_conn_start(struct iscsi_cls_conn *cls_conn)
363363
struct iscsi_conn *conn = cls_conn->dd_data;
364364
int err;
365365

366-
err = iscsi_conn_start(cls_conn);
366+
err = iser_conn_set_full_featured_mode(conn);
367367
if (err)
368368
return err;
369369

370-
return iser_conn_set_full_featured_mode(conn);
370+
return iscsi_conn_start(cls_conn);
371371
}
372372

373373
static struct iscsi_transport iscsi_iser_transport;

0 commit comments

Comments
 (0)