NeilBrown f5fe1b5190 blk: Ensure users for current->bio_list can see the full list.
Commit 79bd99596b73 ("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: NeilBrown <neilb@suse.com>
Fixes: 79bd99596b73 ("blk: improve order of bio handling in generic_make_request()")
Signed-off-by: Jens Axboe <axboe@fb.com>
2017-03-11 15:31:37 -07:00
..
2014-01-14 23:23:03 -05:00
2016-07-28 17:38:16 -07:00
2016-11-01 09:43:26 -06:00
2017-02-28 16:47:52 -05:00
2016-08-07 14:41:02 -06:00
2016-08-07 14:41:02 -06:00
2007-10-20 02:01:26 +01:00
2016-08-07 14:41:02 -06:00
2017-02-15 11:24:54 -08:00
2015-08-13 12:31:57 -06:00