* [PATCH 2/2] qla1280: Drop host_lock while requesting firmware
@ 2009-08-23 15:38 Ben Hutchings
2009-08-24 4:37 ` Jaswinder Singh Rajput
0 siblings, 1 reply; 2+ messages in thread
From: Ben Hutchings @ 2009-08-23 15:38 UTC (permalink / raw)
To: James E.J. Bottomley; +Cc: linux-scsi, Jaswinder Singh Rajput
[-- Attachment #1: Type: text/plain, Size: 1017 bytes --]
request_firmware() may sleep and it appears to be safe to release the
spinlock here.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
Scott Bailey <scott.bailey@hp.com> tested this change to the two
separate functions qla1280_load_firmware_{pio,dma}() in 2.6.30. I'm not
adding Tested-by since he didn't test this exact code.
Ben.
drivers/scsi/qla1280.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c
index 4951344..492492d 100644
--- a/drivers/scsi/qla1280.c
+++ b/drivers/scsi/qla1280.c
@@ -1803,8 +1803,10 @@ qla1280_load_firmware(struct scsi_qla_host *ha)
if (err)
return err;
+ spin_unlock_irq(ha->host->host_lock);
err = request_firmware(&fw, ql1280_board_tbl[ha->devnum].fwname,
&ha->pdev->dev);
+ spin_lock_irq(ha->host->host_lock);
if (err) {
printk(KERN_ERR "Failed to load image \"%s\" err %d\n",
ql1280_board_tbl[ha->devnum].fwname, err);
--
1.6.3.3
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] qla1280: Drop host_lock while requesting firmware
2009-08-23 15:38 [PATCH 2/2] qla1280: Drop host_lock while requesting firmware Ben Hutchings
@ 2009-08-24 4:37 ` Jaswinder Singh Rajput
0 siblings, 0 replies; 2+ messages in thread
From: Jaswinder Singh Rajput @ 2009-08-24 4:37 UTC (permalink / raw)
To: Ben Hutchings; +Cc: James E.J. Bottomley, linux-scsi, David.Woodhouse
Thanks, Ben.
Seems good to me.
--
JSR
On Sun, Aug 23, 2009 at 9:08 PM, Ben Hutchings<ben@decadent.org.uk> wrote:
> request_firmware() may sleep and it appears to be safe to release the
> spinlock here.
>
> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
> ---
> Scott Bailey <scott.bailey@hp.com> tested this change to the two
> separate functions qla1280_load_firmware_{pio,dma}() in 2.6.30. I'm not
> adding Tested-by since he didn't test this exact code.
>
> Ben.
>
> drivers/scsi/qla1280.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c
> index 4951344..492492d 100644
> --- a/drivers/scsi/qla1280.c
> +++ b/drivers/scsi/qla1280.c
> @@ -1803,8 +1803,10 @@ qla1280_load_firmware(struct scsi_qla_host *ha)
> if (err)
> return err;
>
> + spin_unlock_irq(ha->host->host_lock);
> err = request_firmware(&fw, ql1280_board_tbl[ha->devnum].fwname,
> &ha->pdev->dev);
> + spin_lock_irq(ha->host->host_lock);
> if (err) {
> printk(KERN_ERR "Failed to load image \"%s\" err %d\n",
> ql1280_board_tbl[ha->devnum].fwname, err);
> --
> 1.6.3.3
>
>
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-24 4:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-23 15:38 [PATCH 2/2] qla1280: Drop host_lock while requesting firmware Ben Hutchings
2009-08-24 4:37 ` Jaswinder Singh Rajput
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.