]> 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)
commit1e333e76c8fe6f0c87e579cf7c0a8ee8e6e8901a
tree04f695435e768a2f6b0cad410c7d60120175145b
parent62aa023e8a173143334899e3b6573b9fc528964a
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