Commit 7caac45b authored by Xingui Yang's avatar Xingui Yang Committed by Greg Kroah-Hartman
Browse files

scsi: hisi_sas: Modify v3 HW SSP underflow error processing

[ Upstream commit 62413199 ]

In case of SSP underflow allow the response frame IU to be examined for
setting the response stat value rather than always setting
SAS_DATA_UNDERRUN.

This will mean that we call sas_ssp_task_response() in those scenarios and
may send sense data to upper layer.

Such a condition would be for bad blocks were we just reporting an
underflow error to upper layer, but now the sense data will tell
immediately that the media is faulty.

Link: https://lore.kernel.org/r/1645703489-87194-7-git-send-email-john.garry@huawei.com


Signed-off-by: default avatarXingui Yang <yangxingui@huawei.com>
Signed-off-by: default avatarQi Liu <liuqi115@huawei.com>
Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Stable-dep-of: f5393a56 ("scsi: hisi_sas: Fix normally completed I/O analysed as failed")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f64d0282
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment