]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc41485517608cb40e91fd5a0e7cf5c557faa762a
tree257b11811ca20a1a5b2e18713298ab068a8638e1
parentb06c17eea65c4b2c9b737b08db5f4b26196c2e6e
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