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