Skip to content

Commit

Permalink
IB/iser: Start connection after enabling iSER
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Erez Zilber authored and Roland Dreier committed Oct 31, 2006
1 parent ae99a78 commit 2e7a742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/infiniband/ulp/iser/iscsi_iser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2e7a742

Please sign in to comment.