block: Split out bio_list_copy_data()
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 9 May 2018 01:33:54 +0000 (21:33 -0400)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 May 2018 19:16:10 +0000 (13:16 -0600)
commit45db54d58de0b7171fe1f0d1dfc14378e464949e
tree7710877ae0fa69ef957a8087785fb1e7e0d1e06d
parent38a72dac48f631c2a90b831a3847cde116f21d3a
block: Split out bio_list_copy_data()

Found a bug (with ASAN) where we were passing a bio to bio_copy_data()
with bi_next not NULL, when it should have been - a driver had left
bi_next set to something after calling bio_endio().

Since the normal case is only copying single bios, split out
bio_list_copy_data() to avoid more bugs like this in the future.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
drivers/block/pktcdvd.c
include/linux/bio.h