diff options
author | Sawan Chandak <sawan.chandak@qlogic.com> | 2016-07-06 11:14:32 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-07-15 15:35:50 -0400 |
commit | a465537ad1a4423e542f9427e4f684334b4b40a5 (patch) | |
tree | 6d7c36a5c93ff56a1b4a1eaa8e59f6766db4c3a6 /drivers/scsi/qla2xxx/qla_attr.c | |
parent | 9e052e2d4f5fe5a6f5f6d5153dd3075160fa8fcb (diff) | |
download | lwn-a465537ad1a4423e542f9427e4f684334b4b40a5.tar.gz lwn-a465537ad1a4423e542f9427e4f684334b4b40a5.zip |
qla2xxx: Disable the adapter and skip error recovery in case of register disconnect.
If there is error recovery going on due to command timeout and
there is register disconnect, then disable the adapter.
Signed-off-by: Sawan Chandak <sawan.chandak@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_attr.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_attr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c index 8b06ce8fbb0f..fe7469c901f7 100644 --- a/drivers/scsi/qla2xxx/qla_attr.c +++ b/drivers/scsi/qla2xxx/qla_attr.c @@ -1769,6 +1769,9 @@ qla2x00_terminate_rport_io(struct fc_rport *rport) if (!fcport) return; + if (test_bit(UNLOADING, &fcport->vha->dpc_flags)) + return; + if (test_bit(ABORT_ISP_ACTIVE, &fcport->vha->dpc_flags)) return; |