Commit e1b2f13a authored by Bart Van Assche's avatar Bart Van Assche Committed by Roland Dreier

IB/srp: Track connection state properly

Remove an assignment that incorrectly overwrites the connection state
update by srp_connect_target().
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Acked-by: default avatarDavid Dillow <dave@thedillows.org>
Cc: <stable@vger.kernel.org> # 3.8
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 836dc9e3
......@@ -1972,7 +1972,6 @@ static int srp_add_target(struct srp_host *host, struct srp_target_port *target)
spin_unlock(&host->target_lock);
target->state = SRP_TARGET_LIVE;
target->connected = false;
scsi_scan_target(&target->scsi_host->shost_gendev,
0, target->scsi_id, SCAN_WILD_CARD, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment