dm: remove legacy code only needed before submit_bio recursion
authorMike Snitzer <snitzer@redhat.com>
Wed, 9 Feb 2022 22:08:13 +0000 (17:08 -0500)
committerMike Snitzer <snitzer@redhat.com>
Wed, 16 Feb 2022 20:47:36 +0000 (15:47 -0500)
commitcfb228a662ff0e5af7b458e051beca2089a31259
tree503bf4e2fc7c9424651046ff7febe2d061b63e46
parentc68e956dcc8648626edd22fd6d630bf4e9b90f29
dm: remove legacy code only needed before submit_bio recursion

Commit 8615cb65bd63 ("dm: remove useless loop in
__split_and_process_bio") showcased that we no longer loop.

Remove the bio_advance() in __split_and_process_bio() that was only
needed when looping was possible.

Similarly there is no need to advance the bio, using ci->sector
cursor, in __send_duplicate_bios().

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c