diff options
author | Sergey Samoylenko <s.samoylenko@yadro.com> | 2021-08-03 16:54:09 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-08-18 04:28:40 +0200 |
commit | 44678553ad7eb59be3092d6677d8d4a00289afda (patch) | |
tree | 67b94778206cccd8e635cbb9dff224584eaed2de /fs/romfs | |
parent | scsi: smartpqi: Replace one-element array with flexible-array member (diff) | |
download | linux-44678553ad7eb59be3092d6677d8d4a00289afda.tar.xz linux-44678553ad7eb59be3092d6677d8d4a00289afda.zip |
scsi: target: Allows backend drivers to fail with specific sense codes
Currently, backend drivers can fail I/O with SAM_STAT_CHECK_CONDITION which
gets us TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE.
Add a new helper that allows backend drivers to fail with specific sense
codes.
This is based on a patch from Mike Christie <michael.christie@oracle.com>.
Cc: Mike Christie <michael.christie@oracle.com>
Link: https://lore.kernel.org/r/20210803145410.80147-2-s.samoylenko@yadro.com
Reviewed-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Sergey Samoylenko <s.samoylenko@yadro.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'fs/romfs')
0 files changed, 0 insertions, 0 deletions