Re: [PATCH] scsi: Only return started requests from scsi_host_find_tag()

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

 



On Mon, 22 Jun 2020 08:30:22 +0200, Hannes Reinecke wrote:

> scsi_host_find_tag() is used by the drivers to return a scsi
> command based on the command tag. Typically it's used from the
> interrupt handler to fetch the command associated with a value
> returned from hardware. Some drivers like fnic or qla4xxx, however,
> also use it also to traverse outstanding comands.
> With the current implementation scsi_host_find_tag() will return
> command even if they are not started (ie passed to the driver).
> This will result in random errors with those drivers.
> With this patch scsi_host_find_tag() will only return 'started'
> commands (ie commands which have been passed to the drivers)
> thus avoiding the above issue.
> The other usecases will be unaffected as the interrupt handler
> naturally will only ever return 'started' requests.

Applied to 5.9/scsi-queue, thanks!

[1/1] scsi: core: Only return started requests from scsi_host_find_tag()
      https://git.kernel.org/mkp/scsi/c/e73a5e8e8003

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