On Tue, Jun 19, 2018 at 10:26:40AM -0700, Bart Van Assche wrote: > Commit 0ba99ca4838b ("block: Add warning for bi_next not NULL in > bio_endio()") breaks the dm driver. end_clone_bio() detects whether > or not a bio is the last bio associated with a request by checking > the .bi_next field. Commit 0ba99ca4838b clears that field before > end_clone_bio() has had a chance to inspect that field. Hence revert > commit 0ba99ca4838b. > > This patch avoids that KASAN reports the following complaint when > running the srp-test software (srp-test/run_tests -c -d -r 10 -t 02-mq): Thanks for debugging this I take it if we had a test for request based dm in blktests or somewhere that probably would have caught this much easier :/