quorum: do not allocate multiple iovecs for FIFO strategy
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 Oct 2016 16:35:27 +0000 (18:35 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 24 Oct 2016 15:56:06 +0000 (17:56 +0200)
commit1ba7e159787d7c96a8783584395b670c22bba4ef
tree76eb5d5528dad942dbae0dbcc66e4a60e1604091
parent86ec252c198a62b3a1da3ac62277adf917d985cf
quorum: do not allocate multiple iovecs for FIFO strategy

In FIFO mode there are no parallel reads, hence there is no need to
allocate separate buffers and clone the iovecs.

The two cases of quorum_aio_cb are now even more different, and
most of quorum_aio_finalize is only needed in one of them, so split
them in separate functions.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1475685327-22767-3-git-send-email-pbonzini@redhat.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/quorum.c