dm raid1: fix immutable biovec related BUG when retrying read bio
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 18 Feb 2014 14:57:22 +0000 (09:57 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 18 Feb 2014 15:48:57 +0000 (10:48 -0500)
commitf3a44fe0608eb628e1f8f6e3540462e6d171a745
tree6e9dae9298d355d238d8b95d9b756f431d6f830e
parentd73f9907294c670da14baea3fb31be27879e818e
dm raid1: fix immutable biovec related BUG when retrying read bio

When restoring bi_end_io, increase bi_remaining before retrying the bio
to avoid BUG_ON(atomic_read(&bio->bi_remaining) <= 0) in bio_endio().

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid1.c