• Kashyap, Desai's avatar
    [SCSI] mpt2sas : IOs needs to be pause until handles are refreshed for all device after recovery · 14695853
    Kashyap, Desai authored
    After Host Reset firmware will have new list of device handles for the target.
    Device handle refresh in driver is part of Rescan topology logic.
    (See functions like *_search_responding_*). This needs to be done from Host
    Reset context before making shost_recovery to 0. Currently it is done in
    Firwmare event context, which may leads IO to a wrong device.
    
    Now handler refresh is moved to HBA reset context.
    Apart from this, Now driver will stop IOs for all device setting deleted
    flag to 1 at the time of HBA Reset through _scsih_prep_device_scan.
    It will only unblock devices, if devices has been found as part of RESCAN.
    This way it will make more safe IO blocking at the time of HBA reset at
    mpt2sas driver layer.
    Signed-off-by: default avatarKashyap Desai <kashyap.desai@lsi.com>
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
    14695853
mpt2sas_scsih.c 192 KB