From: James Smart <james.smart@emulex.com>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"kernel-janitors@vger.kernel.org"
<kernel-janitors@vger.kernel.org>
Subject: Re: [patch] [SCSI] lpfc: nested calls to spin_lock_irq()
Date: Wed, 21 Dec 2011 10:42:59 -0500 [thread overview]
Message-ID: <4EF1FE83.1000201@emulex.com> (raw)
In-Reply-To: <20111216202819.GF18570@elgon.mountain>
Thanks Dan...
-- james
Acked-by: James Smart <james.smart@emulex.com>
On 12/16/2011 3:28 PM, Dan Carpenter wrote:
> We already have disabled IRQs so there is no need to disable them again.
> Also the functions are not nestable, the first spin_unlock_irq() will
> enable IRQs and we don't want to do that until the second unlock.
>
> Signed-off-by: Dan Carpenter<dan.carpenter@oracle.com>
>
> diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
> index 678a4b1..d7e916b 100644
> --- a/drivers/scsi/lpfc/lpfc_hbadisc.c
> +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c
> @@ -2977,9 +2977,9 @@ lpfc_mbx_process_link_up(struct lpfc_hba *phba, struct lpfc_mbx_read_top *la)
> "topology\n");
> /* Get Loop Map information */
> if (bf_get(lpfc_mbx_read_top_il, la)) {
> - spin_lock_irq(shost->host_lock);
> + spin_lock(shost->host_lock);
> vport->fc_flag |= FC_LBIT;
> - spin_unlock_irq(shost->host_lock);
> + spin_unlock(shost->host_lock);
> }
>
> vport->fc_myDID = bf_get(lpfc_mbx_read_top_alpa_granted, la);
> @@ -3029,9 +3029,9 @@ lpfc_mbx_process_link_up(struct lpfc_hba *phba, struct lpfc_mbx_read_top *la)
> phba->sli3_options |= LPFC_SLI3_NPIV_ENABLED;
> }
> vport->fc_myDID = phba->fc_pref_DID;
> - spin_lock_irq(shost->host_lock);
> + spin_lock(shost->host_lock);
> vport->fc_flag |= FC_LBIT;
> - spin_unlock_irq(shost->host_lock);
> + spin_unlock(shost->host_lock);
> }
> spin_unlock_irq(&phba->hbalock);
>
>
prev parent reply other threads:[~2011-12-21 15:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-16 20:28 [patch] [SCSI] lpfc: nested calls to spin_lock_irq() Dan Carpenter
2011-12-21 15:42 ` James Smart [this message]
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=4EF1FE83.1000201@emulex.com \
--to=james.smart@emulex.com \
--cc=JBottomley@parallels.com \
--cc=dan.carpenter@oracle.com \
--cc=kernel-janitors@vger.kernel.org \
--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