Re: [PATCH] scsi: core: Remove an incorrect comment

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

 



On 6/7/24 22:24, Christoph Hellwig wrote:
On Fri, Jun 07, 2024 at 02:35:53PM -0700, Bart Van Assche wrote:
The comment that scsi_static_device_list would go away was added more than
18 years ago. Today, that list is still there and 84 additional entries have
been added. This shows that the comment is incorrect. Hence remove that
comment.

I agree that the comment as-is is bogus.  But it would be good to state
that quirks should go into the LLDs if they aren't for devices on a
physical bus like SAS, Fibre Channel or parallel SCSI.  Most quirks
theses days are for unusually buggy consumer devices like UFS or
usb-storage/uas and are better placed there instead of in the core
scsi code.

How about changing the comment above scsi_static_device_list[] into this?

/*
 * scsi_static_device_list: list of devices that require settings that differ
 * from the default, includes black-listed (broken) devices. The entries here
 * are added to the tail of scsi_dev_info_list via scsi_dev_info_list_init.
 *
 * If possible, set the BLIST_* flags from inside the SCSI LLD rather than
 * adding an entry to this list.
 */

Thanks,

Bart.




[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