* [PATCH] ipr: RESEND: fix PCI permanent error handler
@ 2009-04-20 16:59 Kleber S. Souza
2009-04-20 20:13 ` James Bottomley
0 siblings, 1 reply; 7+ messages in thread
From: Kleber S. Souza @ 2009-04-20 16:59 UTC (permalink / raw)
To: linux-scsi@vger.kernel.org
From: Brian King <brking@linux.vnet.ibm.com>
The ipr driver can hang if it encounters enough PCI errors
to trigger the permanent error handler. The driver will attempt
to initiate a "bringdown" of the adapter and fail all pending
ops back. However, this bringdown is unlike any other bringdown
of the adapter in the code as the driver. In this code path we
end up failing back ops with allow_cmds still set to 1. This results
in some commands, the HCAM commands in particular, getting immediately
re-issued to the adapter on the done call, which results in
an infinite loop in ipr_fail_all_ops. Fix this by setting allow_cmds
to zero in this path.
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Kleber S. Souza <klebers@linux.vnet.ibm.com>
---
drivers/scsi/ipr.c | 1 +
1 file changed, 1 insertion(+)
diff -puN drivers/scsi/ipr.c~ipr_pci_perm_failure_hang
drivers/scsi/ipr.c
---
linux-2.6/drivers/scsi/ipr.c~ipr_pci_perm_failure_hang 2009-04-15
09:25:21.000000000 -0500
+++ linux-2.6-bjking1/drivers/scsi/ipr.c 2009-04-15
09:25:39.000000000 -0500
@@ -6998,6 +6998,7 @@ static void ipr_pci_perm_failure(struct
ioa_cfg->sdt_state = ABORT_DUMP;
ioa_cfg->reset_retries = IPR_NUM_RESET_RELOAD_RETRIES;
ioa_cfg->in_ioa_bringdown = 1;
+ ioa_cfg->allow_cmds = 0;
ipr_initiate_ioa_reset(ioa_cfg, IPR_SHUTDOWN_NONE);
spin_unlock_irqrestore(ioa_cfg->host->host_lock, flags);
}
_
--
--
Kleber S. Souza
IBM Linux Technology Center
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ipr: RESEND: fix PCI permanent error handler
2009-04-20 16:59 [PATCH] ipr: RESEND: fix PCI permanent error handler Kleber S. Souza
@ 2009-04-20 20:13 ` James Bottomley
2009-04-20 20:18 ` Brian King
0 siblings, 1 reply; 7+ messages in thread
From: James Bottomley @ 2009-04-20 20:13 UTC (permalink / raw)
To: Kleber S. Souza; +Cc: linux-scsi@vger.kernel.org
On Mon, 2009-04-20 at 13:59 -0300, Kleber S. Souza wrote:
> From: Brian King <brking@linux.vnet.ibm.com>
>
> The ipr driver can hang if it encounters enough PCI errors
> to trigger the permanent error handler. The driver will attempt
> to initiate a "bringdown" of the adapter and fail all pending
> ops back. However, this bringdown is unlike any other bringdown
> of the adapter in the code as the driver. In this code path we
> end up failing back ops with allow_cmds still set to 1. This results
> in some commands, the HCAM commands in particular, getting immediately
> re-issued to the adapter on the done call, which results in
> an infinite loop in ipr_fail_all_ops. Fix this by setting allow_cmds
> to zero in this path.
>
> Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
> Signed-off-by: Kleber S. Souza <klebers@linux.vnet.ibm.com>
OK, now I'm really confused. Originally this patch was your From: but
had a Brian signoff. I asked if it shouldn't be acked by him instead
and he responded "correct".
Now you've sent the patch as being his original authorship ... whose
patch is this?
James
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ipr: RESEND: fix PCI permanent error handler
2009-04-20 20:13 ` James Bottomley
@ 2009-04-20 20:18 ` Brian King
2009-04-20 20:30 ` James Bottomley
2009-04-27 15:38 ` James Bottomley
0 siblings, 2 replies; 7+ messages in thread
From: Brian King @ 2009-04-20 20:18 UTC (permalink / raw)
To: James Bottomley; +Cc: Kleber S. Souza, linux-scsi@vger.kernel.org
Kleber found the problem, debugged it, and provided a fix to me.
I provided him with an alternate patch to fix it. I'm assuming this
should have been handled by me submitting with my signoff alone and
adding a reported-by tag for Kleber. Sorry for the confusion. Shall
I resend as I just described?
Thanks,
Brian
James Bottomley wrote:
> On Mon, 2009-04-20 at 13:59 -0300, Kleber S. Souza wrote:
>> From: Brian King <brking@linux.vnet.ibm.com>
>>
>> The ipr driver can hang if it encounters enough PCI errors
>> to trigger the permanent error handler. The driver will attempt
>> to initiate a "bringdown" of the adapter and fail all pending
>> ops back. However, this bringdown is unlike any other bringdown
>> of the adapter in the code as the driver. In this code path we
>> end up failing back ops with allow_cmds still set to 1. This results
>> in some commands, the HCAM commands in particular, getting immediately
>> re-issued to the adapter on the done call, which results in
>> an infinite loop in ipr_fail_all_ops. Fix this by setting allow_cmds
>> to zero in this path.
>>
>> Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
>> Signed-off-by: Kleber S. Souza <klebers@linux.vnet.ibm.com>
>
> OK, now I'm really confused. Originally this patch was your From: but
> had a Brian signoff. I asked if it shouldn't be acked by him instead
> and he responded "correct".
>
> Now you've sent the patch as being his original authorship ... whose
> patch is this?
>
> James
>
>
> --
> 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
--
Brian King
Linux on Power Virtualization
IBM Linux Technology Center
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ipr: RESEND: fix PCI permanent error handler
2009-04-20 20:18 ` Brian King
@ 2009-04-20 20:30 ` James Bottomley
2009-04-27 15:38 ` James Bottomley
1 sibling, 0 replies; 7+ messages in thread
From: James Bottomley @ 2009-04-20 20:30 UTC (permalink / raw)
To: Brian King; +Cc: Kleber S. Souza, linux-scsi@vger.kernel.org
On Mon, 2009-04-20 at 15:18 -0500, Brian King wrote:
> Kleber found the problem, debugged it, and provided a fix to me.
> I provided him with an alternate patch to fix it. I'm assuming this
> should have been handled by me submitting with my signoff alone and
> adding a reported-by tag for Kleber. Sorry for the confusion. Shall
> I resend as I just described?
No, I always thought it was
From: Kleber
Acked-by: you
Signed-off-by: Kleber
I just became confused when the most recent update came through.
James
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ipr: RESEND: fix PCI permanent error handler
2009-04-20 20:18 ` Brian King
2009-04-20 20:30 ` James Bottomley
@ 2009-04-27 15:38 ` James Bottomley
2009-05-04 13:41 ` Kleber S. Souza
1 sibling, 1 reply; 7+ messages in thread
From: James Bottomley @ 2009-04-27 15:38 UTC (permalink / raw)
To: Brian King; +Cc: Kleber S. Souza, linux-scsi@vger.kernel.org
On Mon, 2009-04-20 at 15:18 -0500, Brian King wrote:
> Kleber found the problem, debugged it, and provided a fix to me.
> I provided him with an alternate patch to fix it. I'm assuming this
> should have been handled by me submitting with my signoff alone and
> adding a reported-by tag for Kleber. Sorry for the confusion. Shall
> I resend as I just described?
The original patch has the tabs replaced by spaces problem, so an
applyable patch correctly attributed would be appreciated.
James
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ipr: RESEND: fix PCI permanent error handler
2009-04-27 15:38 ` James Bottomley
@ 2009-05-04 13:41 ` Kleber S. Souza
2009-05-20 21:16 ` James Bottomley
0 siblings, 1 reply; 7+ messages in thread
From: Kleber S. Souza @ 2009-05-04 13:41 UTC (permalink / raw)
To: James Bottomley; +Cc: Brian King, linux-scsi@vger.kernel.org
On Mon, 2009-04-27 at 15:38 +0000, James Bottomley wrote:
> On Mon, 2009-04-20 at 15:18 -0500, Brian King wrote:
> > Kleber found the problem, debugged it, and provided a fix to me.
> > I provided him with an alternate patch to fix it. I'm assuming this
> > should have been handled by me submitting with my signoff alone and
> > adding a reported-by tag for Kleber. Sorry for the confusion. Shall
> > I resend as I just described?
>
> The original patch has the tabs replaced by spaces problem, so an
> applyable patch correctly attributed would be appreciated.
>
> James
>
>
Sending the patch again, now with tabs.
Kleber
The ipr driver can hang if it encounters enough PCI errors
to trigger the permanent error handler. The driver will attempt
to initiate a "bringdown" of the adapter and fail all pending
ops back. However, this bringdown is unlike any other bringdown
of the adapter in the code as the driver. In this code path we
end up failing back ops with allow_cmds still set to 1. This results
in some commands, the HCAM commands in particular, getting immediately
re-issued to the adapter on the done call, which results in
an infinite loop in ipr_fail_all_ops. Fix this by setting allow_cmds
to zero in this path.
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Kleber S. Souza <klebers@linux.vnet.ibm.com>
---
drivers/scsi/ipr.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index dd689de..d640359 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -7003,6 +7003,7 @@ static void ipr_pci_perm_failure(struct pci_dev
*pdev)
ioa_cfg->sdt_state = ABORT_DUMP;
ioa_cfg->reset_retries = IPR_NUM_RESET_RELOAD_RETRIES;
ioa_cfg->in_ioa_bringdown = 1;
+ ioa_cfg->allow_cmds = 0;
ipr_initiate_ioa_reset(ioa_cfg, IPR_SHUTDOWN_NONE);
spin_unlock_irqrestore(ioa_cfg->host->host_lock, flags);
}
--
1.6.0.6
--
Kleber S. Souza
IBM Linux Technology Center
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] ipr: RESEND: fix PCI permanent error handler
2009-05-04 13:41 ` Kleber S. Souza
@ 2009-05-20 21:16 ` James Bottomley
0 siblings, 0 replies; 7+ messages in thread
From: James Bottomley @ 2009-05-20 21:16 UTC (permalink / raw)
To: Kleber S. Souza; +Cc: Brian King, linux-scsi@vger.kernel.org
On Mon, 2009-05-04 at 10:41 -0300, Kleber S. Souza wrote:
> O@@ -7003,6 +7003,7 @@ static void ipr_pci_perm_failure(struct pci_dev
> *pdev)
OK, so the tabs are fixed, but you mailer still broke this line. I
fixed it up, but you really need to find a working email tool for next
time.
James
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-05-20 21:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-20 16:59 [PATCH] ipr: RESEND: fix PCI permanent error handler Kleber S. Souza
2009-04-20 20:13 ` James Bottomley
2009-04-20 20:18 ` Brian King
2009-04-20 20:30 ` James Bottomley
2009-04-27 15:38 ` James Bottomley
2009-05-04 13:41 ` Kleber S. Souza
2009-05-20 21:16 ` James Bottomley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox