public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Rob Love <robert.w.love@intel.com>
To: linux-scsi@vger.kernel.org
Subject: [PATCH] [FCoE] Don't create a duplicate port on reset
Date: Mon, 31 Dec 2007 11:17:31 -0800	[thread overview]
Message-ID: <20071231191731.28996.95097.stgit@fritz> (raw)

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

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

 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;


                 reply	other threads:[~2007-12-31 19:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071231191731.28996.95097.stgit@fritz \
    --to=robert.w.love@intel.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox