]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f07ede9e950c437182f0904b9c7731ce336ca17
tree27ffb37b15e486de6031c7179eea3ba6bcee3e2b
parentf3cad97259e7da7196c1072efc41f56ac29dfe5b
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