Thread (50 messages) 50 messages, 5 authors, 2016-08-25

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

From: Shaun Tancheff <hidden>
Date: 2016-08-25 08:44:48
Also in: lkml

On Thu, Aug 25, 2016 at 2:01 AM, Tom Yan [off-list ref] 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 drivers/scsi/sd.c
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 the ATA device (i.e. triggers an ATA
command), while ata_format_sct_write_same() and
ata_scsi_write_same_xlat() are used for constructing payload that is
going to be send to the ATA device. Can't you even see that these are
of different direction to different layer?
Adding a new global buffer where there is one there already is
kind of silly. The buffer already has a perfectly acceptable
spinlock and the time spent copying data around is trivially
small in comparison to the I/O operation so there is not
likely to be any contention over the buffer.

It is memory. Why do you think ata_scsi_rbuf is so special?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help