linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Himanshu Madhani <himanshu.madhani@qlogic.com>
To: Himanshu Madhani <himanshu.madhani@qlogic.com>,
	Bart Van Assche <bart.vanassche@sandisk.com>
Cc: "jbottomley@parallels.com" <jbottomley@parallels.com>,
	"hch@lst.de" <hch@lst.de>,
	Giridhar Malavali <giridhar.malavali@qlogic.com>,
	Andrew Vasquez <andrew.vasquez@qlogic.com>,
	linux-scsi <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH 2/2] qla2xxx: fix rwlock recursion
Date: Mon, 26 Oct 2015 20:34:16 +0000	[thread overview]
Message-ID: <D253DBAE.BFD54%himanshu.madhani@qlogic.com> (raw)
In-Reply-To: <22881A44-6E6A-45D7-828F-B0DE6C91476D@qlogic.com>

[-- Attachment #1: Type: text/plain, Size: 2339 bytes --]

Hi Bart, 


On 10/14/15, 4:07 PM, "linux-scsi-owner@vger.kernel.org on behalf of
Himanshu Madhani" <linux-scsi-owner@vger.kernel.org on behalf of
himanshu.madhani@qlogic.com> wrote:

>Hi Bart, 
>
>> On Oct 14, 2015, at 10:33 AM, Bart Van Assche
>><bart.vanassche@sandisk.com> wrote:
>> 
>> On 10/14/2015 08:57 AM, Himanshu Madhani wrote:
>>> This patch fixes rwlock recursion introduced for ISP82XX by
>>> commit 8dfa4b5a ("qla2xxx: Fix sparse annotations")
>> 
>> Hello Himanshu,
>> 
>> Would it be possible to test whether the (untested) patch below also
>>fixes the observed rwlock recursion ?
>> 
>> Thanks,
>> 
>> Bart.
>> 
>> 
>> 
>> [PATCH] qla2xxx: Fix rwlock recursion
>> 
>> Fixes: 8dfa4b5a9b44 ("qla2xxx: Fix sparse annotation")
>> Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
>> Reported-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
>> Cc: Giridhar Malavali <giridhar.malavali@qlogic.com>
>> ---
>> drivers/scsi/qla2xxx/qla_nx.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>> 
>> diff --git a/drivers/scsi/qla2xxx/qla_nx.c
>>b/drivers/scsi/qla2xxx/qla_nx.c
>> index eb0cc54..b6b4cfd 100644
>> --- a/drivers/scsi/qla2xxx/qla_nx.c
>> +++ b/drivers/scsi/qla2xxx/qla_nx.c
>> @@ -433,7 +433,7 @@ qla82xx_pci_get_crb_addr_2M(struct qla_hw_data *ha,
>>ulong off_in,
>> 	if (off_in < QLA82XX_PCI_CRBSPACE)
>> 		return -1;
>> 
>> -	*off_out = (void __iomem *)(off_in - QLA82XX_PCI_CRBSPACE);
>> +	off_in -= QLA82XX_PCI_CRBSPACE;
>> 
>> 	/* Try direct map */
>> 	m = &crb_128M_2M_map[CRB_BLK(off_in)].sub_block[CRB_SUBBLK(off_in)];
>> @@ -443,6 +443,7 @@ qla82xx_pci_get_crb_addr_2M(struct qla_hw_data *ha,
>>ulong off_in,
>> 		return 0;
>> 	}
>> 	/* Not in direct map, use crb window */
>> +	*off_out = (void __iomem *)off_in;
>> 	return 1;
>> }
>> 
>
>This change  also resolved rwlock recursion on the driver load. Will
>perform some more basic sanity and report if there are issues seen.

Testing looks good so far. Please send official patch with this fix.



>
>> -- 
>> 2.1.4
>> 
>> 
>
>--
>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


Thanks,
Himanshu


>


[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 5302 bytes --]

  reply	other threads:[~2015-10-26 20:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-14 15:57 [PATCH 0/2] qla2xxx: Patches for 4.3.0-rc5+ scsi "misc" branch Himanshu Madhani
2015-10-14 15:57 ` [PATCH 1/2] qla2xxx: Remove unavailable firmware files Himanshu Madhani
2015-10-14 23:33   ` Julian Calaby
2015-10-15  7:45   ` Hannes Reinecke
2015-10-14 15:57 ` [PATCH 2/2] qla2xxx: fix rwlock recursion Himanshu Madhani
2015-10-14 16:53   ` Bart Van Assche
2015-10-14 17:33   ` Bart Van Assche
2015-10-14 21:07     ` Himanshu Madhani
2015-10-26 20:34       ` Himanshu Madhani [this message]
2015-10-15  7:50   ` Hannes Reinecke
  -- strict thread matches above, loose matches on Subject: below --
2015-11-16 22:57 Xose Vazquez Perez

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=D253DBAE.BFD54%himanshu.madhani@qlogic.com \
    --to=himanshu.madhani@qlogic.com \
    --cc=andrew.vasquez@qlogic.com \
    --cc=bart.vanassche@sandisk.com \
    --cc=giridhar.malavali@qlogic.com \
    --cc=hch@lst.de \
    --cc=jbottomley@parallels.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).