From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VuIj8-00015d-MF for qemu-devel@nongnu.org; Sat, 21 Dec 2013 04:20:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VuIiz-0003Mk-Om for qemu-devel@nongnu.org; Sat, 21 Dec 2013 04:20:06 -0500 Received: from e28smtp08.in.ibm.com ([122.248.162.8]:41475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VuIiz-0003MV-5d for qemu-devel@nongnu.org; Sat, 21 Dec 2013 04:19:57 -0500 Received: from /spool/local by e28smtp08.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 21 Dec 2013 14:49:54 +0530 Received: from d28relay04.in.ibm.com (d28relay04.in.ibm.com [9.184.220.61]) by d28dlp01.in.ibm.com (Postfix) with ESMTP id 1D1B6E0024 for ; Sat, 21 Dec 2013 14:52:20 +0530 (IST) Received: from d28av03.in.ibm.com (d28av03.in.ibm.com [9.184.220.65]) by d28relay04.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id rBL9Jlxq34537688 for ; Sat, 21 Dec 2013 14:49:47 +0530 Received: from d28av03.in.ibm.com (localhost [127.0.0.1]) by d28av03.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id rBL9Jn2n002406 for ; Sat, 21 Dec 2013 14:49:50 +0530 From: Bharata B Rao Date: Sat, 21 Dec 2013 14:51:23 +0530 Message-Id: <1387617686-1229-1-git-send-email-bharata@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v2 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, pbonzini@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 v2 ------------- - Don't use QEMU's AIO infrastructure (BlockDriverAIOCB, qemu_aio_get/release) at all, instead manage the request structure completely within gluster driver. - Minor code cleanups. 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 | 318 +++++++++++++++++++++++++++++--------------------------- configure | 8 ++ 2 files changed, 175 insertions(+), 151 deletions(-) -- 1.7.11.7