summaryrefslogtreecommitdiff
path: root/drivers/scsi/hisi_sas
diff options
context:
space:
mode:
authorEwan D. Milne <emilne@redhat.com>2020-12-07 17:10:21 -0500
committerMartin K. Petersen <martin.petersen@oracle.com>2021-01-05 23:45:51 -0500
commite5cc9002caafacbaa8dab878d17a313192c3b03b (patch)
tree4f82d2663c11682b9ea657d2ce3b7a6371613b67 /drivers/scsi/hisi_sas
parent3b01d7ea4dae907d34fa0eeb3f17bacd714c6d0c (diff)
scsi: sd: Suppress spurious errors when WRITE SAME is being disabled
The block layer code will split a large zeroout request into multiple bios and if WRITE SAME is disabled because the storage device reports that it does not support it (or support the length used), we can get an error message from the block layer despite the setting of RQF_QUIET on the first request. This is because more than one request may have already been submitted. Fix this by setting RQF_QUIET when BLK_STS_TARGET is returned to fail the request early, we don't need to log a message because we did not actually submit the command to the device, and the block layer code will handle the error by submitting individual write bios. Link: https://lore.kernel.org/r/20201207221021.28243-1-emilne@redhat.com Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Ewan D. Milne <emilne@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hisi_sas')
0 files changed, 0 insertions, 0 deletions