Re: [PATCH 2/3] scsi: fnic: Stop setting scsi_cmnd.tag

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

 



On 14/08/2021 13:35, Hannes Reinecke wrote:
On 8/14/21 9:39 AM, Christoph Hellwig wrote:
On Fri, Aug 13, 2021 at 08:17:45PM -0700, Bart Van Assche wrote:
On 8/13/21 6:49 AM, John Garry wrote:
It is never read. Setting it and the request tag seems dodgy
anyway.

This is done because there is code in the SCSI error handler that may
allocate a SCSI command without allocating a tag. See also
scsi_ioctl_reset().

Right, so we just get a loan of the tag of a real request. fnic driver comment:

"Really should fix the midlayer to pass in a proper request for ioctls..."


Yes.  Hannes had a great series to stop passing the pointless scsi_cmnd
to the reset methods.  Hannes, any chance you coul look into
resurrecting that?

Sure.

The latest iteration of that series - at v7 - still passed that fake SCSI command to the reset method, and the reset method allocated the internal command.

So will we change change scsi_ioctl_reset() to allocate an internal command, rather than the LLDD?

Thanks,
John



[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