From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VF4Co-0001MX-As for qemu-devel@nongnu.org; Thu, 29 Aug 2013 11:32:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VF4Ci-0005e8-Ns for qemu-devel@nongnu.org; Thu, 29 Aug 2013 11:32:18 -0400 Received: from mail-ee0-x232.google.com ([2a00:1450:4013:c00::232]:50299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VF4Ci-0005e1-HP for qemu-devel@nongnu.org; Thu, 29 Aug 2013 11:32:12 -0400 Received: by mail-ee0-f50.google.com with SMTP id d51so332351eek.9 for ; Thu, 29 Aug 2013 08:32:11 -0700 (PDT) Date: Thu, 29 Aug 2013 17:32:09 +0200 From: Stefan Hajnoczi Message-ID: <20130829153209.GF17744@stefanha-thinkpad.redhat.com> References: <1376070245-22557-1-git-send-email-charlie@ctshepherd.com> <1376070245-22557-9-git-send-email-charlie@ctshepherd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1376070245-22557-9-git-send-email-charlie@ctshepherd.com> Subject: Re: [Qemu-devel] [RFC v2 09/15] Add a synchronous wrapper bdrv_sync_rwco List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Charlie Shepherd Cc: kwolf@redhat.com, pbonzini@redhat.com, gabriel@kerneis.info, qemu-devel@nongnu.org On Fri, Aug 09, 2013 at 07:43:59PM +0200, Charlie Shepherd wrote: > A number of functions in block.c pass an RwCo struct to a coroutine entry point in order to > synchronise an asynchronous function. This patch factors this pattern out into a function. > > Signed-off-by: Charlie Shepherd > --- > block.c | 37 +++++++++++++++++-------------------- > 1 file changed, 17 insertions(+), 20 deletions(-) Nice :)