[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC V7 03/13] quorum: Add quorum_aio_writev and its de
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [RFC V7 03/13] quorum: Add quorum_aio_writev and its dependencies. |
Date: |
Mon, 28 Jan 2013 17:07:22 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Jan 28, 2013 at 02:22:49PM +0100, Benoît Canet wrote:
> +static QuorumAIOCB *quorum_aio_get(BDRVQuorumState *s,
> + BlockDriverState *bs,
> + QEMUIOVector *qiov,
> + uint64_t sector_num,
> + int nb_sectors,
> + BlockDriverCompletionFunc *cb,
> + void *opaque)
> +{
> + QuorumAIOCB *acb = qemu_aio_get(&quorum_aiocb_info, bs, cb, opaque);
> + int i;
> +
> + acb->aios = g_new0(QuorumSingleAIOCB, s->total);
> + acb->qiovs = g_new0(QEMUIOVector, s->total);
->aios and ->qiovs lifetime matches so QEMUIOVector could be a field in
QuorumSingleAIOCB to simplify things.
- [Qemu-devel] [RFC V7 00/13] Quorum block filter, Benoît Canet, 2013/01/28
- [Qemu-devel] [RFC V7 03/13] quorum: Add quorum_aio_writev and its dependencies., Benoît Canet, 2013/01/28
- Re: [Qemu-devel] [RFC V7 03/13] quorum: Add quorum_aio_writev and its dependencies.,
Stefan Hajnoczi <=
- [Qemu-devel] [RFC V7 01/13] quorum: Create quorum .c, add QuorumSingleAIOCB and QuorumAIOCB., Benoît Canet, 2013/01/28
- [Qemu-devel] [RFC V7 02/13] quorum: Create BDRVQuorumState and BlkDriver and do init., Benoît Canet, 2013/01/28
- [Qemu-devel] [RFC V7 07/13] quorum: Add quorum_getlength()., Benoît Canet, 2013/01/28
- [Qemu-devel] [RFC V7 10/13] quorum: Add quorum_co_flush()., Benoît Canet, 2013/01/28
- [Qemu-devel] [RFC V7 12/13] quorum: Add quorum_snapshot_reopen., Benoît Canet, 2013/01/28
- [Qemu-devel] [RFC V7 13/13] quorum: Add quorum_open() and quorum_close()., Benoît Canet, 2013/01/28
- [Qemu-devel] [RFC V7 11/13] quorum: Add quorum_snapshot_img_create., Benoît Canet, 2013/01/28
- [Qemu-devel] [RFC V7 08/13] quorum: Add quorum_invalidate_cache()., Benoît Canet, 2013/01/28
- [Qemu-devel] [RFC V7 06/13] quorum: Add quorum mechanism., Benoît Canet, 2013/01/28