Skip to content
Commit 0a0d96b0 authored by Jens Axboe's avatar Jens Axboe
Browse files

block: add bio_kmalloc()



Not all callers need (or want!) the mempool backing guarentee, it
essentially means that you can only use bio_alloc() for short allocations
and not for preallocating some bio's at setup or init time.

So add bio_kmalloc() which does the same thing as bio_alloc(), except
it just uses kmalloc() as the backing instead of the bio mempools.

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