Skip to content
Commit f5fe1b51 authored by NeilBrown's avatar NeilBrown Committed by Jens Axboe
Browse files

blk: Ensure users for current->bio_list can see the full list.

Commit 79bd9959

 ("blk: improve order of bio handling in generic_make_request()")
changed current->bio_list so that it did not contain *all* of the
queued bios, but only those submitted by the currently running
make_request_fn.

There are two places which walk the list and requeue selected bios,
and others that check if the list is empty.  These are no longer
correct.

So redefine current->bio_list to point to an array of two lists, which
contain all queued bios, and adjust various code to test or walk both
lists.

Signed-off-by: default avatarNeilBrown <neilb@suse.com>
Fixes: 79bd9959

 ("blk: improve order of bio handling in generic_make_request()")
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 84c37c16
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment