linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: James Smart <James.Smart@Emulex.Com>
To: Andrew Vasquez <andrew.vasquez@qlogic.com>
Cc: Linux-SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] fc_transport: stop creating duplicate rport entries.
Date: Wed, 15 Feb 2006 08:54:58 -0500	[thread overview]
Message-ID: <43F332B2.4000901@emulex.com> (raw)
In-Reply-To: <20060214222214.GJ2051@andrew-vasquezs-powerbook-g4-15.local>

Good Catch!

-- james s

Andrew Vasquez wrote:
> Current fc_transport consumers initially register rports
> with an UNKNOWN role-state and follow-up with a call to
> fc_remote_port_rolechg().  Modify code in
> fc_remote_port_add() to scan the fc_host_rport_bindings()
> array for consistent bindings regardless of role-type.
> Original code would only scan bindings array for targets,
> causing duplicate fc_remote_ports/rport-X:Y-Z entries to be
> created for the yet-to-be-role-changed rports.
> 
> Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
> ---
> 
> This should go into 2.6.16.
> 
> diff --git a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c
> index f2c9acf..929032e 100644
> --- a/drivers/scsi/scsi_transport_fc.c
> +++ b/drivers/scsi/scsi_transport_fc.c
> @@ -1498,8 +1498,7 @@ fc_remote_port_add(struct Scsi_Host *sho
>  	}
>  
>  	/* Search the bindings array */
> -	if (likely((ids->roles & FC_RPORT_ROLE_FCP_TARGET) &&
> -		(fc_host_tgtid_bind_type(shost) != FC_TGTID_BIND_NONE))) {
> +	if (fc_host_tgtid_bind_type(shost) != FC_TGTID_BIND_NONE) {
>  
>  		/* search for a matching consistent binding */
>  
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

  reply	other threads:[~2006-02-15 13:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-14 22:22 [PATCH] fc_transport: stop creating duplicate rport entries Andrew Vasquez
2006-02-15 13:54 ` James Smart [this message]
2006-02-21 21:52   ` Michael Reed
2006-02-21 22:07     ` Michael Reed
2006-02-21 22:11     ` James Smart
2006-02-24 23:37       ` Michael Reed

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=43F332B2.4000901@emulex.com \
    --to=james.smart@emulex.com \
    --cc=andrew.vasquez@qlogic.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;
as well as URLs for NNTP newsgroup(s).