NeilBrown 37011e3afb md/raid1: stop using bi_phys_segment
Change to use bio->__bi_remaining to count number of r1bio attached
to a bio.
See precious raid10 patch for more details.

Like the raid10.c patch, this fixes a bug as nr_queued and nr_pending
used to measure different things, but were being compared.

This patch fixes another bug in that nr_pending previously did not
could write-behind requests, so behind writes could continue while
resync was happening.  How that nr_pending counts all r1_bio,
the resync cannot commence until the behind writes have completed.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
2017-03-22 19:17:53 -07: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
2016-08-07 14:41:02 -06:00
2017-03-16 16:55:53 -07:00
2015-08-13 12:31:57 -06:00
2017-03-22 19:17:53 -07:00