OSDN Git Service

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)
commit891fced644a7529bfd4b1436b2341527ce8f68ad
tree04f695435e768a2f6b0cad410c7d60120175145b
parent1d1068cecff70cb8e48c7cb0ba27cc3fd906eb31
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