Received: from eggs.gnu.org ([2001:4830:134:3::10]:55063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoWfN-0000Nt-TS for qemu-devel@nongnu.org; Thu, 05 Dec 2013 06:00:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoWfE-00035E-Fe for qemu-devel@nongnu.org; Thu, 05 Dec 2013 06:00:21 -0500 Received: from e28smtp07.in.ibm.com ([122.248.162.7]:54459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoWfD-00034q-Qd for qemu-devel@nongnu.org; Thu, 05 Dec 2013 06:00:12 -0500 Received: from /spool/local by e28smtp07.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 5 Dec 2013 16:30:03 +0530 Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by d28dlp02.in.ibm.com (Postfix) with ESMTP id 8585A3940058 for ; Thu, 5 Dec 2013 16:30:01 +0530 (IST) Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id rB5AxtOq65929442 for ; Thu, 5 Dec 2013 16:29:55 +0530 Received: from d28av04.in.ibm.com (localhost [127.0.0.1]) by d28av04.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id rB5B00Dd028736 for ; Thu, 5 Dec 2013 16:30:00 +0530 From: Bharata B Rao Date: Thu, 5 Dec 2013 16:31:25 +0530 Message-Id: <1386241288-18180-1-git-send-email-bharata@linux.vnet.ibm.com> Subject: [Qemu-devel] [RFC PATCH v1 0/3] gluster: conversion to coroutines and supporting write_zeroes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, jcody@redhat.com, stefanha@redhat.com, Bharata B Rao Hi, This series is about converting all the bdrv_aio* implementations in gluster driver to coroutine based implementations. Read, write, flush and discard routines are converted. This also adds support for .bdrv_co_write_zeroes() in gluster and provides a new preallocation option with qemu-img (-o preallocation=full) that can be used for raw images on GlusterFS backend to create fully allocated and zero-filled images. Changes in v1 ------------- - Removed qemu_gluster_aio_cancel() and associated code. - Calling qemu_aio_release() from where aiocb is created. - s/qemu_gluster_aio_rw/qemu_gluster_co_rw. - Use errno appropriately from read, write, flush, discard and zerofill routines in gluster driver. - Fix a memory leak in qemu_gluster_create(). - Proceed with glfs_zerofill() only if glfs_ftruncate() succeeds in qemu_gluster_create(). Bharata B Rao (3): gluster: Convert aio routines into coroutines gluster: Implement .bdrv_co_write_zeroes for gluster gluster: Add support for creating zero-filled image block/gluster.c | 297 +++++++++++++++++++++++++++++++------------------------- configure | 8 ++ 2 files changed, 174 insertions(+), 131 deletions(-) -- 1.7.11.7