From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758891AbcIMRpV (ORCPT ); Tue, 13 Sep 2016 13:45:21 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:39249 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754771AbcIMRpS (ORCPT ); Tue, 13 Sep 2016 13:45:18 -0400 X-Sasl-enc: AxbpjvAR2SBcb+g7xO1s2WyQJmZBXjtoEPH7pTR7xLkE 1473788717 Date: Tue, 13 Sep 2016 14:45:14 -0300 From: Henrique de Moraes Holschuh To: "Jason A. Donenfeld" Cc: linux-scsi@vger.kernel.org, LKML Subject: Re: TRIM/UNMAP/DISCARD via ATA Passthrough Message-ID: <20160913174514.GA3484@khazad-dum.debian.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint1: 4096R/39CB4807 C467 A717 507B BAFE D3C1 6092 0BD9 E811 39CB 4807 User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 12 Sep 2016, Jason A. Donenfeld wrote: > 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. Whomever implements this, please add a "chicken bit" to allow the user to disable it if the enclosure misbehaves. -- Henrique Holschuh