]> git.baikalelectronics.ru Git - kernel.git/commit
dm: use bio_clone_fast in alloc_io/alloc_tio
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Feb 2022 16:01:07 +0000 (17:01 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Feb 2022 14:43:18 +0000 (07:43 -0700)
commit2139a37d694d4fa96c3e8bd1b5ab128709e7c211
tree16225c5aede600c6adbd5d09d38d7044f003da2b
parent86f472463858af974c7fe095056cb5075b514245
dm: use bio_clone_fast in alloc_io/alloc_tio

Replace open coded bio_clone_fast implementations with the actual helper.
Note that the bio allocated as part of the dm_io structure in alloc_io
will only actually be used later in alloc_tio, making this earlier
cloning of the information safe.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Link: https://lore.kernel.org/r/20220202160109.108149-12-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm.c