IB/srp: Track connection state properly
authorBart Van Assche <bvanassche@acm.org>
Thu, 21 Feb 2013 17:16:54 +0000 (17:16 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 25 Feb 2013 17:31:14 +0000 (09:31 -0800)
Remove an assignment that incorrectly overwrites the connection state
update by srp_connect_target().

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: David Dillow <dave@thedillows.org>
Cc: <stable@vger.kernel.org> # 3.8
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/srp/ib_srp.c

index d5088ce78290ac41c867df9e667131d47af734aa..94f76b9319c191220b5731bf3b2f93c9dfdfe4cd 100644 (file)
@@ -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);