]> git.karo-electronics.de Git - karo-tx-linux.git/commit
scsi: hisi_sas: modify error handling for v2 hw
authorXiang Chen <chenxiang66@hisilicon.com>
Wed, 22 Mar 2017 17:25:24 +0000 (01:25 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Mar 2017 15:12:02 +0000 (11:12 -0400)
commitfc8669514426b21b7aaa73e40a22fb1e1eb39259
tree5dae56b2239fe211de8ed0104fdec28ee8cd1ae0
parentb4c67a6ca790ca3b8caa1e6582d61ccd5bd174e5
scsi: hisi_sas: modify error handling for v2 hw

For error codes which need abort-and-retry, simulate IO timeout and let
SCSI+ATA layers process those errors.

Previously for SSP, we should try to abort the IO in the LLDD and then
pass back to upper layer, but sometimes this would also error. So
Instead of adding special error handling for this scenario in the LLDD,
allow the upper layer to handle completely.

No performance hit is seen by taking this approach.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c