linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] Add support for Write Same via SCT
@ 2016-06-09  6:32 Shaun Tancheff
  2016-06-09  6:32 ` [PATCH v2] Add support for SCT Write Same Shaun Tancheff
  0 siblings, 1 reply; 5+ messages in thread
From: Shaun Tancheff @ 2016-06-09  6:32 UTC (permalink / raw)
  To: linux-ide, linux-scsi
  Cc: Shaun Tancheff, James E . J . Bottomley, Martin K . Petersen,
	Tejun Heo

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-13  8:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-09  6:32 [PATCH v2] Add support for Write Same via SCT Shaun Tancheff
2016-06-09  6:32 ` [PATCH v2] Add support for SCT Write Same Shaun Tancheff
2016-06-09  9:22   ` Christoph Hellwig
2016-06-10  3:24     ` Shaun Tancheff
2016-06-13  8:02       ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).