• Kashyap, Desai's avatar
    [SCSI] mpt2sas: fix broadcast AEN and task management issue · f93213de
    Kashyap, Desai authored
    Properly handling of target reset in multi-initiator environment
    
    Clean up in broadcast change handling:
    (1) Need to look at the status of each task management request, and retry
        the TM when there are failures.
    (2) Need quiescence IO so the driver doesn't take on more IO request while
        it's in the middle of sending TM  request to firmware
    (3)  Add support to keep track of how many pending broadcast AEN events
         are received while the broadcast handling is active, then loop back at
         the end of this routine if there were any events received.
    
    Clean up in mpt2sas_scsih_issue_tm routine:
    (1) Make sure proper status is returned when host reset fails
    (2) Clean up sanity checks near end of routine, insuring all outstanding
        IOs were completed.
    Signed-off-by: default avatarKashyap Desai <kashyap.desai@lsi.com>
    Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
    f93213de
mpt2sas_ctl.c 85.4 KB