aio: use iovec array rather than the single one
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Wed, 23 Jul 2014 10:03:54 +0000 (18:03 +0800)
committerBenjamin LaHaise <bcrl@kvack.org>
Thu, 24 Jul 2014 14:59:40 +0000 (10:59 -0400)
commit00fefb9cf2b5493a86912de55ba912bdfae4a207
tree27ffb37b15e486de6031c7179eea3ba6bcee3e2b
parent2be4e7deec2d4398a0eb2165cc04086ebfc831d2
aio: use iovec array rather than the single one

Previously, we only offer a single iovec to handle all the read/write cases, so
the PREADV/PWRITEV request always need to alloc more iovec buffer when copying
user vectors.
If we use a tmp iovec array rather than the single one, some small PREADV/PWRITEV
workloads(vector size small than the tmp buffer) will not need to alloc more
iovec buffer when copying user vectors.

Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
fs/aio.c