Received: from eggs.gnu.org ([2001:4830:134:3::10]:37544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX8Pu-0007la-3m for qemu-devel@nongnu.org; Fri, 18 Oct 2013 07:40:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VX8Po-0007Cr-HN for qemu-devel@nongnu.org; Fri, 18 Oct 2013 07:40:30 -0400 Received: from mail-ea0-x22a.google.com ([2a00:1450:4013:c01::22a]:49554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX8Po-0007CJ-Ah for qemu-devel@nongnu.org; Fri, 18 Oct 2013 07:40:24 -0400 Received: by mail-ea0-f170.google.com with SMTP id q10so1507747eaj.15 for ; Fri, 18 Oct 2013 04:40:23 -0700 (PDT) Date: Fri, 18 Oct 2013 13:40:21 +0200 From: Stefan Hajnoczi Message-ID: <20131018114021.GB17031@stefanha-thinkpad.redhat.com> References: <1382073439-27285-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1382073439-27285-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2] vmdk: Only read cid from image file when opening List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com On Fri, Oct 18, 2013 at 01:17:19PM +0800, Fam Zheng wrote: > Previously cid of parent is parsed from image file for every IO request. > We already have L1/L2 cache and don't have assumption that parent image > can be updated behind us, so remove this to get more efficiency. > > The parent CID is checked only for once after opening. > > Signed-off-by: Fam Zheng > > --- > v2: Use cid_checked. (Stefan) > > Signed-off-by: Fam Zheng > --- > block/vmdk.c | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan