aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2013-02-21 12:16:54 -0500
committerRoland Dreier <roland@purestorage.com>2013-02-25 12:31:14 -0500
commite1b2f13aba9ff714d23ecd4a950e744ee7ad72e1 (patch)
tree52754df53c53f1b9f3c27fd1d3840e2ca97799c5 /drivers
parent836dc9e3fbbab0c30aa6e664417225f5c1fb1c39 (diff)
IB/srp: Track connection state properly
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/ulp/srp/ib_srp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
index d5088ce78290..94f76b9319c1 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -1972,7 +1972,6 @@ static int srp_add_target(struct srp_host *host, struct srp_target_port *target)
1972 spin_unlock(&host->target_lock); 1972 spin_unlock(&host->target_lock);
1973 1973
1974 target->state = SRP_TARGET_LIVE; 1974 target->state = SRP_TARGET_LIVE;
1975 target->connected = false;
1976 1975
1977 scsi_scan_target(&target->scsi_host->shost_gendev, 1976 scsi_scan_target(&target->scsi_host->shost_gendev,
1978 0, target->scsi_id, SCAN_WILD_CARD, 0); 1977 0, target->scsi_id, SCAN_WILD_CARD, 0);