summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2017-03-15 14:05:14 +1100
committerShaohua Li <shli@fb.com>2017-03-22 19:17:53 -0700
commit37011e3afb0fdc462307dc006246358bddf61e92 (patch)
treeddee334efb3c77a020382f46d1ce6aaf93fd316a /drivers/md/raid5.c
parentfd16f2e8489100eb8005483ff630856bce51f803 (diff)
downloadlinux-37011e3afb0fdc462307dc006246358bddf61e92.tar.bz2
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>
Diffstat (limited to 'drivers/md/raid5.c')
0 files changed, 0 insertions, 0 deletions