Skip to content
Commit 392ddc32 authored by Jens Axboe's avatar Jens Axboe
Browse files

bio: add support for inlining a number of bio_vecs inside the bio



When we go and allocate a bio for IO, we actually do two allocations.
One for the bio itself, and one for the bi_io_vec that holds the
actual pages we are interested in.

This feature inlines a definable amount of io vecs inside the bio
itself, so we eliminate the bio_vec array allocation for IO's up
to a certain size. It defaults to 4 vecs, which is typically 16k
of IO.

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent bb799ca0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment