summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ipr.h
diff options
context:
space:
mode:
authorBrian King <brking@linux.vnet.ibm.com>2011-10-15 16:08:56 +0200
committerJames Bottomley <JBottomley@Parallels.com>2011-10-20 17:19:55 +0200
commit4c647e909fceb9df8ec8f06016dd56244045a929 (patch)
tree30203a4611841498e22fe829d2626fc8f38f9cae /drivers/scsi/ipr.h
parent[SCSI] megaraid_sas: Fix instance access in megasas_reset_timer (diff)
downloadlinux-4c647e909fceb9df8ec8f06016dd56244045a929.tar.xz
linux-4c647e909fceb9df8ec8f06016dd56244045a929.zip
[SCSI] ipr: Fix BUG on adapter dump timeout
If an adapter dump times out, the ipr driver will abort the dump and proceed to reset and recover the adapter. When an adapter dump completes, the work thread which is reading the adapter dump will initiate an adapter reset to recover the adapter. However, when the adapter dump gets aborted, the work thread should not initiate an adapter reset, since an adapter reset is already in progress. This fixes a case of calling pci_block_user_cfg_access overlapped, which results in a BUG. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/ipr.h')
-rw-r--r--drivers/scsi/ipr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h
index 0cbf58f6ae5d..6d257e0dd6a5 100644
--- a/drivers/scsi/ipr.h
+++ b/drivers/scsi/ipr.h
@@ -1385,6 +1385,7 @@ struct ipr_ioa_cfg {
u8 needs_warm_reset:1;
u8 msi_received:1;
u8 sis64:1;
+ u8 dump_timeout:1;
u8 revid;