diff options
author | Xiaofei Tan <tanxiaofei@huawei.com> | 2018-05-21 18:09:19 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-05-28 22:40:32 -0400 |
commit | 6175abdeaeaf2602f3e92bd4eca5916e98efe996 (patch) | |
tree | da383ca0e76d7d11ee3ca8115a6341a36ddb17dd /drivers/scsi/libsas | |
parent | 235bfc7ff63027e90c25663ed7a976083f5afb47 (diff) | |
download | linux-stable-6175abdeaeaf2602f3e92bd4eca5916e98efe996.tar.gz linux-stable-6175abdeaeaf2602f3e92bd4eca5916e98efe996.tar.bz2 linux-stable-6175abdeaeaf2602f3e92bd4eca5916e98efe996.zip |
scsi: hisi_sas: Init disks after controller reset
After the controller is reset, it is possible that the disks attached still
have outstanding IO to complete.
Thus, when the PHYs come back up after controller reset, it is possible
that these IOs complete at some unknown point later.
We want to ensure that all IOs are complete after the controller reset so
that all associated IPTT and other resources can be recycled safely.
To achieve this, re-init the disks by TMF or softreset (in case of ATA
devices).
If the init fails - maybe because the device was removed or link has not
come up - then do not release the device resources, but rather rely on SCSI
EH to handle the timeout for these resources later on.
This patch also does some cleanup to hisi_sas_init_disk(), including
removing superfluous cases in the switch statement.
Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/libsas')
0 files changed, 0 insertions, 0 deletions