Browse Source

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>
Bart Van Assche 12 years ago
parent
commit
e1b2f13aba
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/infiniband/ulp/srp/ib_srp.c

+ 0 - 1
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);