block: prevent multiwrite_merge from creating too large iovecs
commit0076bc0c1d93adcbc7f1af184e04902cf37e9ab8
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Jan 2010 21:15:39 +0000 (19 22:15 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 20 Jan 2010 14:51:40 +0000 (20 08:51 -0600)
tree7c0bc0f4f0ab2d7424d3d162e56f394ef11c5584
parent1d44952fc7f4de113eae892401e4d50ee476e82e
block: prevent multiwrite_merge from creating too large iovecs

If we go over the maximum number of iovecs support by syscall we get
back EINVAL from the kernel which translate to I/O errors for the guest.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block.c