[PATCH] [FCoE] Don't create a duplicate port on reset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



P2P mode was failing due to a duplicate remote port being created when a reset occured.

Signed-off-by: Rob Love <robert.w.love@xxxxxxxxx>
---

 drivers/scsi/ofc/libfc/fc_local_port.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/scsi/ofc/libfc/fc_local_port.c b/drivers/scsi/ofc/libfc/fc_local_port.c
index 95380f9..1911405 100644
--- a/drivers/scsi/ofc/libfc/fc_local_port.c
+++ b/drivers/scsi/ofc/libfc/fc_local_port.c
@@ -275,11 +275,9 @@ static void fc_local_port_ptp_setup(struct fc_local_port *lp,
 {
 	struct fc_remote_port *rp;
 
-	rp = fc_remote_port_lookup_create(lp->fl_vf, 0, remote_wwpn,
+	rp = fc_remote_port_lookup_create(lp->fl_vf, remote_fid, remote_wwpn,
 					  remote_wwnn);
 	if (rp) {
-		if (rp->rp_fid != remote_fid)
-			fc_remote_port_set_fid(rp, remote_fid);
 		if (lp->fl_ptp_rp)
 			fc_remote_port_release(lp->fl_ptp_rp);
 		lp->fl_ptp_rp = rp;

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux