diff options
| author | John Garry <[email protected]> | 2022-02-17 15:42:29 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2022-02-19 20:59:34 +0000 |
| commit | 9aacf6fe90592cc7f64d56505e42606b61b76f00 (patch) | |
| tree | 54b6ed7e12fca77981b81b8674cc8fdf6571aa49 /drivers/scsi/libsas/sas_task.c | |
| parent | Merge branch '5.17/scsi-fixes' into 5.18/scsi-staging (diff) | |
| download | kernel-9aacf6fe90592cc7f64d56505e42606b61b76f00.tar.gz kernel-9aacf6fe90592cc7f64d56505e42606b61b76f00.zip | |
scsi: libsas: Handle non-TMF codes in sas_scsi_find_task()
LLDD TMF callbacks may return linux or other error codes instead of TMF
codes. This may cause problems in sas_scsi_find_task() ->
.lldd_query_task(), as only TMF codes are handled there. As such, we may
not return a task_disposition type from sas_scsi_find_task(). Function
sas_eh_handle_sas_errors() only handles that type, and will only progress
error handling for those recognised types.
Return TASK_ABORT_FAILED upon exit on the assumption that the command may
still be alive and error handling should be escalated.
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Damien Le Moal <[email protected]>
Signed-off-by: John Garry <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/scsi/libsas/sas_task.c')
0 files changed, 0 insertions, 0 deletions
