[dm-devel] [PATCH 5/6] dm: simplify flush_bio initialization in __send_empty_flush

Mike Snitzer snitzer at redhat.com
Tue Nov 17 16:10:59 UTC 2020


On Mon, Nov 16 2020 at  4:20pm -0500,
Christoph Hellwig <hch at lst.de> wrote:

> We don't really need the struct block_device to initialize a bio.  So
> switch from using bio_set_dev to manually setting up bi_disk (bi_partno
> will always be zero and has been cleared by bio_init already).
> 
> Signed-off-by: Christoph Hellwig <hch at lst.de>

Acked-by: Mike Snitzer <snitzer at redhat.com>




More information about the dm-devel mailing list