[Drbd-dev] [PATCH 15/19] block: pass a block_device and opf to bio_alloc_bioset

Chaitanya Kulkarni chaitanyak at nvidia.com
Tue Jan 18 23:12:25 CET 2022


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_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 at lst.de>


Looks good.

Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>




More information about the drbd-dev mailing list