Jens Axboe e88811bc43 block: use on-stack page vec for <= UIO_FASTIOV
Avoid a kmalloc+kfree for each page array, if we only have a few pages
that are mapped. An alloc+free for each IO is quite expensive, and
it's pretty pointless if we're only dealing with 1 or a few vecs.

Use UIO_FASTIOV like we do in other spots to set a sane limit for how
big of an IO we want to avoid allocations for.

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-08-22 10:07:56 -06:00
..
2022-08-03 10:35:43 -07:00
2022-07-14 12:14:30 -06:00
2022-07-14 12:14:30 -06:00
2022-03-31 12:58:38 -06:00
2022-02-02 07:49:59 -07:00
2022-03-21 16:48:55 -07:00
2022-07-14 12:14:30 -06:00
2022-08-08 22:37:15 -04:00
2022-03-07 12:48:35 -07:00