Re: [PATCH] iscsi-target: Convert timers to use timer_setup()

2017-10-25 Thread Jason A. Donenfeld
On Wed, Oct 25, 2017 at 12:01 PM, Kees Cook wrote: > sess->time2retain_timer.expires = > (get_jiffies_64() + sess->sess_ops->DefaultTime2Retain * HZ); > add_timer(&sess->time2retain_timer); > cmd->dataout_timer.expires = (get_jiffies_64() + na->dataout_timeo

Re: TRIM/UNMAP/DISCARD via ATA Passthrough

2016-09-16 Thread Jason A. Donenfeld
On Fri, Sep 16, 2016 at 7:06 PM, Austin S. Hemmelgarn wrote: > 1. UAS (not some other SCSI transport) without UNMAP support. > 2. Supports ATA_12 or ATA_16 pass through. > 3. ATA DEVICE IDENTIFY via SAT indicates that the device supports > DISCARD/TRIM. > Then we'd be matching behavior on Windows,

Re: TRIM/UNMAP/DISCARD via ATA Passthrough

2016-09-15 Thread Jason A. Donenfeld
Hi Martin, On Thu, Sep 15, 2016 at 6:07 PM, Martin K. Petersen > But how do they signal that ATA passthrough is possible? Is there an ATA > Information VPD page? Is REPORT SUPPORTED OPERATION CODES supported? > > We need really solid discovery data before we can entertain enabling > something like

Re: TRIM/UNMAP/DISCARD via ATA Passthrough

2016-09-15 Thread Jason A. Donenfeld
On Wed, Sep 14, 2016 at 8:37 PM, Martin K. Petersen > How do they signal that they support the passthrough? Through the usual SCSI ATA-passthrough interface, "SAT" (SCSI-ATA Command Translation) -- ATA PASS THROUGH SCSI (16) and ATA PASS THROUGH SCSI (12). I can use hdparm to treat /dev/sdb as

TRIM/UNMAP/DISCARD via ATA Passthrough

2016-09-12 Thread Jason A. Donenfeld
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 encl