diff options
author | Sergey Samoylenko <s.samoylenko@yadro.com> | 2021-08-03 17:54:09 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-08-17 22:28:40 -0400 |
commit | 44678553ad7eb59be3092d6677d8d4a00289afda (patch) | |
tree | 67b94778206cccd8e635cbb9dff224584eaed2de /mm | |
parent | 5f492a7aa13b4ebf8ca85e818585394053065240 (diff) | |
download | linux-stable-44678553ad7eb59be3092d6677d8d4a00289afda.tar.gz linux-stable-44678553ad7eb59be3092d6677d8d4a00289afda.tar.bz2 linux-stable-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 'mm')
0 files changed, 0 insertions, 0 deletions