Commit 95900629 authored by Raghava Aditya Renukunta's avatar Raghava Aditya Renukunta Committed by Martin K. Petersen

scsi: aacraid: Do not remove offlined devices

As part of the recovery process, the drivers removes offline devices (
done by the kernel) and then tries to add them back in the rescan code.
Removing the device is like taking a sledgehammer to a nail.

Set the device as running if it is marked offline.
Signed-off-by: default avatarRaghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent c5313ae8
...@@ -1658,14 +1658,12 @@ static int _aac_reset_adapter(struct aac_dev *aac, int forced, u8 reset_type) ...@@ -1658,14 +1658,12 @@ static int _aac_reset_adapter(struct aac_dev *aac, int forced, u8 reset_type)
command->scsi_done(command); command->scsi_done(command);
} }
/* /*
* Any Device that was already marked offline needs to be cleaned up * Any Device that was already marked offline needs to be marked
* running
*/ */
__shost_for_each_device(dev, host) { __shost_for_each_device(dev, host) {
if (!scsi_device_online(dev)) { if (!scsi_device_online(dev))
sdev_printk(KERN_INFO, dev, "Removing offline device\n"); scsi_device_set_state(dev, SDEV_RUNNING);
scsi_remove_device(dev);
scsi_device_put(dev);
}
} }
retval = 0; retval = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment