At some point the method of issuing Write Same for ATA drives changed. Currently write same is commonly available via SCT so expose the SCT capabilities and use SCT Write Same when it is available. This is useful for zoned based media that prefers to support discard with lbprz set, aka discard zeroes data by mapping discard operations to reset write pointer operations. Conventional zones that do not support reset write pointer can still honor the discard zeroes data by issuing a write same over the zone. It may also be nice to know if various controllers that currently disable WRITE SAME will work with the SCT Write Same code path: aacraid, arcmsr, megaraid, 3w-9xxx, 3w-sas, 3w-xxxx, gdth, hpsa, ips, megaraid, pmcraid, storvsc_drv This patch against v4.8-rc1 is also at https://github.com/stancheff/linux/tree/v4.8-rc1+ws.v5 git@xxxxxxxxxx:stancheff/linux.git v4.8-rc1+ws.v5 Shaun Tancheff (2): Use kmap_atomic when rewriting attached page Add support for SCT Write Same drivers/ata/libata-scsi.c | 240 ++++++++++++++++++++++++++++++++++++++++------ include/linux/ata.h | 69 ++++++++----- 2 files changed, 252 insertions(+), 57 deletions(-) -- 2.8.1 -- 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