From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4t0R-0000zW-Si for qemu-devel@nongnu.org; Thu, 10 Nov 2016 12:19:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4t0Q-0007kL-UC for qemu-devel@nongnu.org; Thu, 10 Nov 2016 12:19:19 -0500 From: Kevin Wolf Date: Thu, 10 Nov 2016 18:19:01 +0100 Message-Id: <1478798349-28983-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [RFC PATCH 0/8] quorum: Implement .bdrv_co_preadv/pwritev() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-block@nongnu.org Cc: kwolf@redhat.com, mreitz@redhat.com, berto@igalia.com, qemu-devel@nongnu.org This is part of a series that I'm working on and that aims to remove the bdrv_aio_*() emulation in io.c. blkdebug and blkverify were easy, but for quorum I need a few more patches, so I'm sending this out as an RFC while I continue work on the rest (QED, and then possibly some polishing). After the series, quorum doesn't only use the preferred interfaces, but the code becomes a little easier to follow and byte granularity requests are supported. There is probably still some potential for additional cleanups in a follow-up series, but this should already be enough to be worth merging. Kevin Wolf (8): coroutine: Introduce qemu_coroutine_enter_if_inactive() quorum: Remove s from quorum_aio_get() arguments quorum: Implement .bdrv_co_readv/writev quorum: Do cleanup in caller coroutine quorum: Inline quorum_aio_cb() quorum: Avoid bdrv_aio_writev() for rewrites quorum: Implement .bdrv_co_preadv/pwritev() quorum: Inline quorum_fifo_aio_cb() block/quorum.c | 373 +++++++++++++++++++++++++---------------------- include/qemu/coroutine.h | 6 + util/qemu-coroutine.c | 8 + 3 files changed, 211 insertions(+), 176 deletions(-) -- 1.8.3.1