From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAHLx-0006hT-7m for qemu-devel@nongnu.org; Tue, 07 Jun 2016 09:47:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAHLs-0006UA-A3 for qemu-devel@nongnu.org; Tue, 07 Jun 2016 09:47:32 -0400 Date: Tue, 7 Jun 2016 15:47:20 +0200 From: Kevin Wolf Message-ID: <20160607134720.GK4684@noname.str.redhat.com> References: <1464973388-15821-1-git-send-email-eblake@redhat.com> <1464995213-13694-1-git-send-email-eblake@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1464995213-13694-1-git-send-email-eblake@redhat.com> Subject: Re: [Qemu-devel] [PATCH 6/5] block: Fix harmless off-by-one in bdrv_aligned_preadv() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, mreitz@redhat.com, qemu-block@nongnu.org, Stefan Hajnoczi , Fam Zheng Am 04.06.2016 um 01:06 hat Eric Blake geschrieben: > If the amount of data to read ends exactly on the total size > of the bs, then we were wasting time creating a local qiov > to read the data in preparation for what would normally be > appending zeroes beyond the end, even though this corner case > has nothing further to do. > > Signed-off-by: Eric Blake Reviewed-by: Kevin Wolf