From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shaun Tancheff Subject: Re: [PATCH v6 1/4] libata: Safely overwrite attached page in WRITE SAME xlat Date: Tue, 23 Aug 2016 01:20:28 -0500 Message-ID: References: <20160822042321.24367-1-shaun@tancheff.com> <20160822042321.24367-2-shaun@tancheff.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from mx0a-00003501.pphosted.com ([67.231.144.15]:32892 "EHLO mx0a-000cda01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756672AbcHWGVV (ORCPT ); Tue, 23 Aug 2016 02:21:21 -0400 Received: from pps.filterd (m0075554.ppops.net [127.0.0.1]) by mx0a-000cda01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u7N6KSRt032921 for ; Tue, 23 Aug 2016 02:20:50 -0400 Received: from mail-qk0-f199.google.com (mail-qk0-f199.google.com [209.85.220.199]) by mx0a-000cda01.pphosted.com with ESMTP id 250dm395c2-5 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 23 Aug 2016 02:20:49 -0400 Received: by mail-qk0-f199.google.com with SMTP id i2so3578424qkc.0 for ; Mon, 22 Aug 2016 23:20:49 -0700 (PDT) In-Reply-To: Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Tom Yan Cc: Shaun Tancheff , linux-ide@vger.kernel.org, LKML , Tejun Heo , Christoph Hellwig , "Martin K . Petersen" , Damien Le Moal , Hannes Reinecke , Josh Bingaman , Hannes Reinecke On Tue, Aug 23, 2016 at 12:26 AM, Tom Yan wrote: > It is always 1 merely because we prefer sticking to that. Say we want > to enable multi-block payload now, it won't be 1 anymore. Sorry, I though that DSM TRIM is using 512 bytes here because WRITE_SAME_16 has a payload of a single logical sector. > Also note that the payload is NOT always fully-filled. Oh, I was considering filling the remainder of the buffer with 0's using memset() as you described to be "filly-filled" in this case. Sorry for the confusion. -- Shaun Tancheff