From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shaun Tancheff Subject: [PATCH v2] Add support for Write Same via SCT Date: Thu, 9 Jun 2016 01:32:46 -0500 Message-ID: <1465453967-11085-1-git-send-email-shaun@tancheff.com> Return-path: Sender: linux-scsi-owner@vger.kernel.org To: linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org Cc: Shaun Tancheff , "James E . J . Bottomley" , "Martin K . Petersen" , Tejun Heo List-Id: linux-ide@vger.kernel.org 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 if 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. v2: - Remove fugly ata hacking from sd.c Shaun Tancheff (1): Add support for SCT Write Same drivers/ata/libata-scsi.c | 34 ++++++++++++++++++++++++++++++++++ drivers/scsi/sd.c | 2 +- include/linux/ata.h | 43 +++++++++++++++++++++++++++++++++++++++++++ include/scsi/scsi_device.h | 1 + 4 files changed, 79 insertions(+), 1 deletion(-) -- 2.8.1