[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC V3 9/9] quorum: Add quorum mechanism.
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [RFC V3 9/9] quorum: Add quorum mechanism. |
Date: |
Wed, 15 Aug 2012 11:51:32 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Aug 14, 2012 at 04:14:11PM +0200, Benoît Canet wrote:
> +#define QUORUM_FREE_QIOV_ITEMS(qlist) do { \
> + QLIST_FOREACH_SAFE(item, qlist, next, next_item) { \
> + QLIST_REMOVE(item, next); \
> + g_free(item); \
> + } } while (0)
This is only used once, please open code it and don't use a macro.
> +
> +static void quorum_free_vote_list(QuorumAIOCB *acb)
> +{
> + QuorumIOVectorVersion *version, *next_version;
> + QuorumIOVectorItem *item, *next_item;
> +
> + QLIST_FOREACH_SAFE(version, &acb->vote_list, next, next_version) {
> + QLIST_REMOVE(version, next);
> + QUORUM_FREE_QIOV_ITEMS(&version->qiov_items);
> + g_free(version);
> + }
> +}
> +
> +#undef QUORUM_FREE_QIOV_ITEMS
- Re: [Qemu-devel] [RFC V3 3/9] quorum: Add quorum_open() and quorum_close()., (continued)
- [Qemu-devel] [RFC V3 5/9] quorum: Add quorum_aio_writev and its dependencies., Benoît Canet, 2012/08/14
- [Qemu-devel] [RFC V3 6/9] blkverify: Extract qemu_iovec_clone() and qemu_iovec_compare() from blkverify., Benoît Canet, 2012/08/14
- [Qemu-devel] [RFC V3 2/9] quorum: Create BDRVQuorumState and BlkDriver and do init., Benoît Canet, 2012/08/14
- [Qemu-devel] [RFC V3 4/9] quorum: Add quorum_getlength()., Benoît Canet, 2012/08/14
- [Qemu-devel] [RFC V3 7/9] quorum: Add quorum_co_flush()., Benoît Canet, 2012/08/14
- [Qemu-devel] [RFC V3 9/9] quorum: Add quorum mechanism., Benoît Canet, 2012/08/14
- Re: [Qemu-devel] [RFC V3 9/9] quorum: Add quorum mechanism.,
Stefan Hajnoczi <=
- [Qemu-devel] [RFC V3 8/9] quorum: Add quorum_aio_readv., Benoît Canet, 2012/08/14
- Re: [Qemu-devel] [RFC V3 0/9] Quorum disk image corruption resiliency, Blue Swirl, 2012/08/14
- Re: [Qemu-devel] [RFC V3 0/9] Quorum disk image corruption resiliency, Stefan Hajnoczi, 2012/08/15
- Re: [Qemu-devel] [RFC V3 0/9] Quorum disk image corruption resiliency, Benoît Canet, 2012/08/20