Received: from eggs.gnu.org ([2001:4830:134:3::10]:59923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUqXF-0004g9-9h for qemu-devel@nongnu.org; Tue, 11 Jul 2017 04:28:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUqXC-000589-6u for qemu-devel@nongnu.org; Tue, 11 Jul 2017 04:28:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35908) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dUqXC-000581-0e for qemu-devel@nongnu.org; Tue, 11 Jul 2017 04:28:42 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F40C985541 for ; Tue, 11 Jul 2017 08:28:40 +0000 (UTC) Date: Tue, 11 Jul 2017 10:28:36 +0200 From: Kevin Wolf Message-ID: <20170711082836.GB4335@noname.str.redhat.com> References: <20170710165827.4250-1-pbonzini@redhat.com> <20170710165827.4250-2-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170710165827.4250-2-pbonzini@redhat.com> Subject: Re: [Qemu-devel] [PATCH 1/5] qcow2: make qcow2_do_open a coroutine_fn List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, marcandre.lureau@redhat.com Am 10.07.2017 um 18:58 hat Paolo Bonzini geschrieben: > It is called from qcow2_invalidate_cache in coroutine context, so always > load metadata from a coroutine. > --- > block/qcow2.c | 45 ++++++++++++++++++++++++++++++++++++++++----- > 1 file changed, 40 insertions(+), 5 deletions(-) Missing S-o-b on patches 1 and 2? These patches suggest that .bdrv_co_open() might be the next thing to get rid of the coroutine wrappers again in driver code. But we'll always have some wrappers in the drivers in an intermediate state, so doing .bdrv_invalidate_cache first is fine. Kevin