]> git.baikalelectronics.ru Git - kernel.git/commit
dm: simplify the single bio fast path in __send_duplicate_bios
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Feb 2022 16:01:04 +0000 (17:01 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Feb 2022 14:43:17 +0000 (07:43 -0700)
commitda000dacc0448718ac4045d83cf7c687817d304b
tree04f695435e768a2f6b0cad410c7d60120175145b
parent863cb933a5c48ca07055a4da6789614b0edce2af
dm: simplify the single bio fast path in __send_duplicate_bios

Most targets just need a single flush bio.  Open code that case in
__send_duplicate_bios without the need to add the bio to a list.

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