Re: [PATCH v6 3/4 RESEND] SCT Write Same / DSM Trim

2016-08-25 Thread Tom Yan
On 25 August 2016 at 16:03, Shaun Tancheff wrote: > On Thu, Aug 25, 2016 at 2:01 AM, Tom Yan wrote: >> Really please just drop this patch. There is no rational reason for >> you to associate the maximum payload size to the logical sector size. > > Been over this many, many times now. It has to do

Re: [PATCH v6 3/4 RESEND] SCT Write Same / DSM Trim

2016-08-25 Thread Shaun Tancheff
On Thu, Aug 25, 2016 at 2:01 AM, Tom Yan wrote: > Really please just drop this patch. There is no rational reason for > you to associate the maximum payload size to the logical sector size. Been over this many, many times now. It has to do with the size of the buffer setup through WRITE SAME in d

Re: [PATCH v6 3/4 RESEND] SCT Write Same / DSM Trim

2016-08-25 Thread Tom Yan
Really please just drop this patch. There is no rational reason for you to associate the maximum payload size to the logical sector size. And please stop using the ATA SCSI Response Buffer (ata_scsi_rbuf) that is used for response to the SCSI layer for SCSI commands that won't really interact with

[PATCH v6 3/4 RESEND] SCT Write Same / DSM Trim

2016-08-24 Thread Shaun Tancheff
Correct handling of devices with sector_size other that 512 bytes. In the case of a 4Kn device sector_size it is possible to describe a much larger DSM Trim than the current fixed default of 512 bytes. This patch assumes the minimum descriptor is sector_size and fills out the descriptor according