]> git.karo-electronics.de Git - linux-beck.git/commit
[SCSI] ipr: fix possible false positive detection of stuck interrupt
authorWayne Boyer <wayneb@linux.vnet.ibm.com>
Tue, 17 May 2011 16:18:53 +0000 (09:18 -0700)
committerJames Bottomley <jbottomley@parallels.com>
Tue, 24 May 2011 16:37:50 +0000 (12:37 -0400)
commita5442ba4a428081ebac7090f46c62ffaa17ca951
tree411450d544b51ccda3f60d4ced97eaca744194ec
parentd85e607b344d8fcd644456508a5bbe63ce011221
[SCSI] ipr: fix possible false positive detection of stuck interrupt

If the driver is getting flooded with interrupts, there's a possibility
that the interrupt service routine could falsely detect a stuck interrupt
condition and reset the adapter.

This patch changes the logic such that the routine will loop back into
the command processing code one more time after detecting the stuck
interrupt signature.  If there are no commands to process after that pass,
and the interrupt is still not cleared, then the driver will print the
"Error clearing HRRQ" message and reset the adapter.

Signed-off-by: Wayne Boyer <wayneb@linux.vnet.ibm.com>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
drivers/scsi/ipr.c