Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1481839

TRIM/UNMAP/DISCARD via ATA Passthrough

From "Jason A. Donenfeld" <Jason@zx2c4.com>
Newsgroups linux.kernel
Subject TRIM/UNMAP/DISCARD via ATA Passthrough
Date 2016-09-12 21:00 +0200
Message-ID <sgECt-7at-29@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi folks,

There's a huge quantity of USB enclosures flooding the market for
quite sometime that support UASP, which is very nice. This allows for
higher speeds by using the SCSI command set via the uas driver, and
offers various other advantages over the classic usb-storage driver.

These USB enclosures do not support SCSI UNMAP. However, they do
support ATA-passthrough, and `hdparm -I` shows that TRIM is supported.

I was wondering if it'd be possible to have the uas driver -- or
perhaps somewhere else in the stack -- fall back to using
ATA-passthrough-TRIM for UNMAP, so that discard can work properly.
AFAIK, the Windows drivers do exactly this.

If the answer is, "yes we want this! but we don't have the man power,"
please tell me where I can start looking, so that I can submit the
patch myself.

Thanks,
Jason

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

TRIM/UNMAP/DISCARD via ATA Passthrough "Jason A. Donenfeld" <Jason@zx2c4.com> - 2016-09-12 21:00 +0200
  Re: TRIM/UNMAP/DISCARD via ATA Passthrough Henrique de Moraes Holschuh <hmh@hmh.eng.br> - 2016-09-13 19:50 +0200
  Re: TRIM/UNMAP/DISCARD via ATA Passthrough "Martin K. Petersen" <martin.petersen@oracle.com> - 2016-09-14 20:40 +0200
    Re: TRIM/UNMAP/DISCARD via ATA Passthrough "Jason A. Donenfeld" <Jason@zx2c4.com> - 2016-09-15 17:50 +0200
      Re: TRIM/UNMAP/DISCARD via ATA Passthrough "Martin K. Petersen" <martin.petersen@oracle.com> - 2016-09-15 18:10 +0200
        Re: TRIM/UNMAP/DISCARD via ATA Passthrough "Jason A. Donenfeld" <Jason@zx2c4.com> - 2016-09-15 23:00 +0200
          Re: TRIM/UNMAP/DISCARD via ATA Passthrough Hannes Reinecke <hare@suse.de> - 2016-09-16 13:20 +0200
            Re: TRIM/UNMAP/DISCARD via ATA Passthrough "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-09-16 18:00 +0200
              Re: TRIM/UNMAP/DISCARD via ATA Passthrough James Bottomley <James.Bottomley@HansenPartnership.com> - 2016-09-16 18:30 +0200
                Re: TRIM/UNMAP/DISCARD via ATA Passthrough "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-09-16 19:10 +0200
                Re: TRIM/UNMAP/DISCARD via ATA Passthrough "Jason A. Donenfeld" <Jason@zx2c4.com> - 2016-09-17 03:30 +0200
                Re: TRIM/UNMAP/DISCARD via ATA Passthrough James Bottomley <James.Bottomley@HansenPartnership.com> - 2016-09-17 07:20 +0200
                Re: TRIM/UNMAP/DISCARD via ATA Passthrough "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-09-19 15:10 +0200

csiph-web