Re: [PATCH] SCSI: Disable WRITE SAME for RAID and virtual host adapter drivers

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

 



>>>>> "Christoph" == Christoph Hellwig <hch@xxxxxxxxxxxxx> writes:

>> @@ -3625,6 +3625,7 @@ int ata_scsi_add_hosts(struct ata_host *host,
>> struct scsi_host_template *sht)
shost-> max_lun = 1; max_channel = 1; max_cmd_len = 16;
>> + shost->no_write_same = 1;

Christoph> Unless I miss something this will disable TRIM support in
Christoph> libata entirely.

The flag effectively disables advertising REQ_WRITE_SAME support to the
block layer (max_write_same_sectors). It doesn't prevent anyone from
issuing write same commands in general. Such as the sd discard prep_fn
and users of sg/bsg.

-- 
Martin K. Petersen	Oracle Linux Engineering
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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