diff options
author | Jens Axboe <axboe@kernel.dk> | 2022-08-06 00:44:34 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-08-22 18:07:56 +0200 |
commit | e88811bc43b971e06fa82d4e421e21b3c999c1a7 (patch) | |
tree | 63b3e0072fbd45bd78ec3b04c0973db6e61c6347 /arch/parisc | |
parent | block: enable bio caching use for passthru IO (diff) | |
download | linux-e88811bc43b971e06fa82d4e421e21b3c999c1a7.tar.xz linux-e88811bc43b971e06fa82d4e421e21b3c999c1a7.zip |
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>
Diffstat (limited to 'arch/parisc')
0 files changed, 0 insertions, 0 deletions