]> git.baikalelectronics.ru Git - kernel.git/commit
block: Add warning for bi_next not NULL in bio_endio()
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 9 May 2018 01:33:56 +0000 (21:33 -0400)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 May 2018 19:16:13 +0000 (13:16 -0600)
commitec6fe0805b412bd2c54364611cd4d18e52bef3ed
treeb39b4f4fe72a4b4ff1016a512d40998dfb1d595c
parente0eac9794c8f392b73220ba5807f8e7d59f8d14e
block: Add warning for bi_next not NULL in bio_endio()

Recently found a bug where a driver left bi_next not NULL and then
called bio_endio(), and then the submitter of the bio used
bio_copy_data() which was treating src and dst as lists of bios.

Fixed that bug by splitting out bio_list_copy_data(), but in case other
things are depending on bi_next in weird ways, add a warning to help
avoid more bugs like that in the future.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
block/blk-core.c