]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] qla2xxx: Disable adapter when we encounter a PCI disconnect.
authorChad Dupuis <chad.dupuis@qlogic.com>
Wed, 30 Oct 2013 07:38:16 +0000 (03:38 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 16 Dec 2013 18:57:57 +0000 (10:57 -0800)
commit7e438746d5aa735a1780d37387be7e4030c84c5e
tree7e81844b19eca775e5f56227cf7b35604032be3d
parent82c39a9b6a7ca605ec4d06e25103158620aaf561
[SCSI] qla2xxx: Disable adapter when we encounter a PCI disconnect.

If we become disconnected from the PCI bus/PCIe fabric, there can be long delays
in register reads which can cause erroneous decisions to be made and cause a
soft lockup if a lock is held too long. As a preventative measure, check for a
disconnection (register reads that return -1) and then disable the board if we
find ourselves in this condition. For now, check in our interrupt handlers and
the per adapter one second timer.

Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_dbg.c
drivers/scsi/qla2xxx/qla_def.h
drivers/scsi/qla2xxx/qla_gbl.h
drivers/scsi/qla2xxx/qla_isr.c
drivers/scsi/qla2xxx/qla_mr.c
drivers/scsi/qla2xxx/qla_nx.c
drivers/scsi/qla2xxx/qla_os.c