qemu-devel
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]