block: replace IOV_MAX with BlockLimits.max_iov
commit222565f65c3fba6825912c2561de7831e514ef3c
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 9 Jul 2015 09:56:46 +0000 (9 10:56 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 22 Dec 2015 08:01:07 +0000 (22 16:01 +0800)
treee1e1753c6481ae4c4f19e0174a68df7898d8e8cf
parent648296e067e617e140032c0ab329fb89ffb92aaa
block: replace IOV_MAX with BlockLimits.max_iov

Request merging must not result in a huge request that exceeds the
maximum number of iovec elements.  Use BlockLimits.max_iov instead of
hardcoding IOV_MAX.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/io.c
hw/block/virtio-blk.c