From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDPZr-0004AN-KN for qemu-devel@nongnu.org; Thu, 16 Jun 2016 01:10:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDPZp-0006Vy-MW for qemu-devel@nongnu.org; Thu, 16 Jun 2016 01:10:50 -0400 Date: Thu, 16 Jun 2016 13:10:37 +0800 From: Fam Zheng Message-ID: <20160616051037.GE12178@ad.usersys.redhat.com> References: <1465939839-30097-1-git-send-email-eblake@redhat.com> <1465939839-30097-4-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-4-git-send-email-eblake@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 03/17] 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, qemu-block@nongnu.org, kwolf@redhat.com, Stefan Hajnoczi , Max Reitz On Tue, 06/14 15:30, Eric Blake wrote: > 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 Reviewed-by: Fam Zheng