From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=38183 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PERAV-0005FS-T0 for qemu-devel@nongnu.org; Fri, 05 Nov 2010 14:37:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PERAU-00008A-Sa for qemu-devel@nongnu.org; Fri, 05 Nov 2010 14:37:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PERAU-00007t-LU for qemu-devel@nongnu.org; Fri, 05 Nov 2010 14:37:42 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oA5Ibesc004337 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 5 Nov 2010 14:37:41 -0400 From: Kevin Wolf Date: Fri, 5 Nov 2010 19:38:23 +0100 Message-Id: <1288982307-30559-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [RFC PATCH v2 0/4] block-queue: Delay and batch metadata writes List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com Still not quite there, but should be a bit more correct than the first RFC. I still need to add proper error handling, the rest of block-queue itself should be fairly complete. With respect to error handling, IDE, virtio-blk and scsi-disk can deal with failed bdrv_(aio_)flush now, so just failing the next flush seems to be a viable option now. The integration into block.c and qcow2 is only a preliminary hack for now and is going to be replaced. Kevin Wolf (4): block: Fake a bdrv_aio_pwrite Add block-queue Test cases for block-queue qcow2: Use block-queue Makefile | 1 + Makefile.objs | 2 +- block-queue.c | 625 ++++++++++++++++++++++++++++++++++++++++++++++++ block-queue.h | 49 ++++ block.c | 30 +++ block.h | 2 + block/qcow2-cluster.c | 39 ++-- block/qcow2-refcount.c | 62 +++--- block/qcow2.c | 18 ++- block/qcow2.h | 4 + check-block-queue.c | 402 +++++++++++++++++++++++++++++++ 11 files changed, 1182 insertions(+), 52 deletions(-) create mode 100644 block-queue.c create mode 100644 block-queue.h create mode 100644 check-block-queue.c -- 1.7.2.3