[PATCH 17/19] block: pass a block_device and opf to bio_alloc

2022-01-24 Thread Christoph Hellwig
Pass the block_device and operation that we plan to use this bio for to bio_alloc to optimize the assignment. 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

Re: [PATCH 17/19] block: pass a block_device and opf to bio_alloc

2022-01-18 Thread Chaitanya Kulkarni
On 1/17/22 11:19 PM, Christoph Hellwig wrote: > Pass the block_device and operation that we plan to use this bio for to > bio_alloc to optimize the assigment. NULL/0 can be passed, both for the 's/assigment/assignment/' > passthrough case on a raw request_queue and to temporarily avoid > refacto

[PATCH 17/19] block: pass a block_device and opf to bio_alloc

2022-01-17 Thread Christoph Hellwig
Pass the block_device and operation that we plan to use this bio for to bio_alloc 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