[SCSI] ipr: Fix BUG on adapter dump timeout
commit4c647e909fceb9df8ec8f06016dd56244045a929
authorBrian King <brking@linux.vnet.ibm.com>
Sat, 15 Oct 2011 14:08:56 +0000 (15 09:08 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 20 Oct 2011 15:19:55 +0000 (20 10:19 -0500)
tree30203a4611841498e22fe829d2626fc8f38f9cae
parentf575c5d3ebdca3b0482847d8fcba971767754a9e
[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>
drivers/scsi/ipr.c
drivers/scsi/ipr.h