Christoph Hellwig 609be10667 block: pass a block_device and opf to bio_alloc_bioset
Pass the block_device and operation that we plan to use this bio for to
bio_alloc_bioset to optimize the assigment.  NULL/0 can be passed, both
for the passthrough case on a raw request_queue and to temporarily avoid
refactoring some nasty code.

Also move the gfp_mask argument after the nr_vecs argument for a much
more logical calling convention matching what most of the kernel does.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220124091107.642561-16-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-02-02 07:49:59 -07:00
..
2021-08-17 11:59:05 -07:00
2022-01-19 11:50:20 +02:00
2022-01-19 11:50:20 +02:00
2021-03-30 18:48:56 -07:00
2022-01-19 11:50:20 +02:00
2021-12-10 15:48:30 -08:00
2021-12-04 10:53:35 -08:00
2021-08-23 10:25:51 -07:00
2022-01-19 11:50:20 +02:00
2022-01-19 11:50:20 +02:00
2022-01-23 06:20:44 +02:00
2022-01-19 11:50:20 +02:00
2022-01-19 11:50:20 +02:00