From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFMIs-0005SW-4T for qemu-devel@nongnu.org; Tue, 21 Jun 2016 10:05:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFMIq-00056n-1I for qemu-devel@nongnu.org; Tue, 21 Jun 2016 10:05:21 -0400 Date: Tue, 21 Jun 2016 16:05:10 +0200 From: Kevin Wolf Message-ID: <20160621140510.GH4520@noname.redhat.com> References: <1465939839-30097-1-git-send-email-eblake@redhat.com> <1465939839-30097-16-git-send-email-eblake@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1465939839-30097-16-git-send-email-eblake@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 15/17] block: Switch discard length bounds to byte-based List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, Stefan Hajnoczi , Fam Zheng , Max Reitz , Ronnie Sahlberg , Paolo Bonzini , Peter Lieven Am 14.06.2016 um 23:30 hat Eric Blake geschrieben: > Sector-based limits are awkward to think about; in our on-going > quest to move to byte-based interfaces, convert max_discard and > discard_alignment. Rename them, using 'pdiscard' as an aid to > track which remaining discard interfaces need conversion, and so > that the compiler will help us catch the change in semantics > across any rebased code. In iscsi.c, sector_limits_lun2qemu() > is no longer needed; and the BlockLimits type is now completely > byte-based. > > Signed-off-by: Eric Blake > /* maximum number of bytes that can zeroized at once (since it is > - * signed, it must be < 2G, if set) */ > + * signed, it must be < 2G, if set), should be multiple of > + * pwrite_zeroes_alignment. May be 0 if no inherent 32-bit limit */ > int32_t max_pwrite_zeroes; > > /* optimal alignment for write zeroes requests in bytes, must be > - * power of 2, and less than max_pwrite_zeroes if that is set */ > + * power of 2, less than max_pwrite_zeroes if that is set, and > + * multiple of bs->request_alignment. May be 0 if > + * bs->request_alignment is good enough */ > uint32_t pwrite_zeroes_alignment; I think you intended to have these as part of some earlier patch, they are not related to discard. Kevin