Certain drives cannot handle queued TRIM commands properly, even though support is indicated in the IDENTIFY DEVICE buffer. This patch allows for disabling of the commands for the affected drives. Signed-off-by: Marc Carino <marc.ceeeee@xxxxxxxxx> --- include/linux/libata.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/libata.h b/include/linux/libata.h index 0e23c26..59f8f97 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h @@ -418,6 +418,8 @@ enum { ATA_HORKAGE_DUMP_ID = (1 << 16), /* dump IDENTIFY data */ ATA_HORKAGE_MAX_SEC_LBA48 = (1 << 17), /* Set max sects to 65535 */ ATA_HORKAGE_ATAPI_DMADIR = (1 << 18), /* device requires dmadir */ + ATA_HORKAGE_BROKEN_QUEUED_TRIM = (1 << 19), /* device doesn't handle + queued TRIMs correctly */ /* DMA mask for user DMA control: User visible values; DO NOT renumber */ -- 1.8.1.3 -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html