block: split bio_kmalloc from bio_alloc_bioset
authorChristoph Hellwig <hch@lst.de>
Tue, 26 Jan 2021 14:52:34 +0000 (15:52 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Jan 2021 16:51:48 +0000 (09:51 -0700)
commit3175199ab0ac8c874ec25c6bf169f74888917435
tree257b11811ca20a1a5b2e18713298ab068a8638e1
parent4eb1d689045552eb966ebf25efbc3ce648797d96
block: split bio_kmalloc from bio_alloc_bioset

bio_kmalloc shares almost no logic with the bio_set based fast path
in bio_alloc_bioset.  Split it into an entirely separate implementation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Acked-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
include/linux/bio.h