]> git.baikalelectronics.ru Git - kernel.git/commit
block: allow passing a NULL bdev to bio_alloc_clone/bio_init_clone
authorChristoph Hellwig <hch@lst.de>
Wed, 4 May 2022 14:29:50 +0000 (07:29 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 5 May 2022 00:29:52 +0000 (18:29 -0600)
commit51a3e3c96272febc06fe05758d4350e0a0dbb882
treeafab60eadb98d3a8a76c957ab39f47d5da3d99cc
parent9971d50663438b1e8264293c14cd429d14f6d76c
block: allow passing a NULL bdev to bio_alloc_clone/bio_init_clone

Device mapper wants to allocate a bio before knowing the device it
gets send to, so add explicit support for that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Snitzer <snitzer@kernel.org>
Link: https://lore.kernel.org/r/20220504142950.567582-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c