From: Bart Van Assche Date: Thu, 21 Feb 2013 17:16:54 +0000 (+0000) Subject: IB/srp: Track connection state properly X-Git-Tag: firefly_0821_release~3680^2~1025^2^8~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e1b2f13aba9ff714d23ecd4a950e744ee7ad72e1;p=firefly-linux-kernel-4.4.55.git 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 Acked-by: David Dillow Cc: # 3.8 Signed-off-by: Roland Dreier --- 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) 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);