diff options
author | Giridhar Malavali <giridhar.malavali@qlogic.com> | 2011-03-30 14:46:26 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2011-05-01 11:10:23 -0400 |
commit | 8f7daead3c7861f9d0caa55269773136ab443b41 (patch) | |
tree | 1d3dbdfce0b71551e839e848f48d35e2ef5fb253 /drivers/scsi/qla2xxx/qla_os.c | |
parent | aee3dbcdd1f8f7dea4500824ae1ac9cfbbe71700 (diff) |
[SCSI] qla2xxx: Perform FCoE context reset before trying adapter reset for ISP82xx.
For certain failures, try to recover first by doing FCoE context reset before
attempting big hammer approach(adpater reset).
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index f040a2a70428..2f039e018eef 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -3612,7 +3612,8 @@ qla2x00_timer(scsi_qla_host_t *vha) | |||
3612 | 3612 | ||
3613 | /* Loop down handler. */ | 3613 | /* Loop down handler. */ |
3614 | if (atomic_read(&vha->loop_down_timer) > 0 && | 3614 | if (atomic_read(&vha->loop_down_timer) > 0 && |
3615 | !(test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags)) | 3615 | !(test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags)) && |
3616 | !(test_bit(FCOE_CTX_RESET_NEEDED, &vha->dpc_flags)) | ||
3616 | && vha->flags.online) { | 3617 | && vha->flags.online) { |
3617 | 3618 | ||
3618 | if (atomic_read(&vha->loop_down_timer) == | 3619 | if (atomic_read(&vha->loop_down_timer) == |
@@ -3648,7 +3649,11 @@ qla2x00_timer(scsi_qla_host_t *vha) | |||
3648 | if (!(sfcp->flags & FCF_FCP2_DEVICE)) | 3649 | if (!(sfcp->flags & FCF_FCP2_DEVICE)) |
3649 | continue; | 3650 | continue; |
3650 | 3651 | ||
3651 | set_bit(ISP_ABORT_NEEDED, | 3652 | if (IS_QLA82XX(ha)) |
3653 | set_bit(FCOE_CTX_RESET_NEEDED, | ||
3654 | &vha->dpc_flags); | ||
3655 | else | ||
3656 | set_bit(ISP_ABORT_NEEDED, | ||
3652 | &vha->dpc_flags); | 3657 | &vha->dpc_flags); |
3653 | break; | 3658 | break; |
3654 | } | 3659 | } |
@@ -3667,7 +3672,12 @@ qla2x00_timer(scsi_qla_host_t *vha) | |||
3667 | qla_printk(KERN_WARNING, ha, | 3672 | qla_printk(KERN_WARNING, ha, |
3668 | "Loop down - aborting ISP.\n"); | 3673 | "Loop down - aborting ISP.\n"); |
3669 | 3674 | ||
3670 | set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); | 3675 | if (IS_QLA82XX(ha)) |
3676 | set_bit(FCOE_CTX_RESET_NEEDED, | ||
3677 | &vha->dpc_flags); | ||
3678 | else | ||
3679 | set_bit(ISP_ABORT_NEEDED, | ||
3680 | &vha->dpc_flags); | ||
3671 | } | 3681 | } |
3672 | } | 3682 | } |
3673 | DEBUG3(printk("scsi(%ld): Loop Down - seconds remaining %d\n", | 3683 | DEBUG3(printk("scsi(%ld): Loop Down - seconds remaining %d\n", |