Re: [PATCH] scsi: sd: suppress suprious block errors when WRITE SAME is being disabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 7 Dec 2020 17:10:21 -0500, Ewan D. Milne wrote:

> 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.

Applied to 5.11/scsi-fixes, thanks!

[1/1] scsi: sd: suppress suprious block errors when WRITE SAME is being disabled
      https://git.kernel.org/mkp/scsi/c/e5cc9002caaf

-- 
Martin K. Petersen	Oracle Linux Engineering



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux