Searched hist:e88811bc (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/block/ |
H A D | blk-map.c | e88811bc Fri Aug 05 17:44:34 CDT 2022 Jens Axboe <axboe@kernel.dk> 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>
|