aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r--drivers/md/raid1.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index 66afe3cd0b87..ede2461e79c5 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -808,7 +808,7 @@ do_sync_io:
808 pr_debug("%dB behind alloc failed, doing sync I/O\n", bio->bi_size); 808 pr_debug("%dB behind alloc failed, doing sync I/O\n", bio->bi_size);
809} 809}
810 810
811static int make_request(struct mddev *mddev, struct bio * bio) 811static void make_request(struct mddev *mddev, struct bio * bio)
812{ 812{
813 struct r1conf *conf = mddev->private; 813 struct r1conf *conf = mddev->private;
814 struct mirror_info *mirror; 814 struct mirror_info *mirror;
@@ -893,7 +893,7 @@ read_again:
893 if (rdisk < 0) { 893 if (rdisk < 0) {
894 /* couldn't find anywhere to read from */ 894 /* couldn't find anywhere to read from */
895 raid_end_bio_io(r1_bio); 895 raid_end_bio_io(r1_bio);
896 return 0; 896 return;
897 } 897 }
898 mirror = conf->mirrors + rdisk; 898 mirror = conf->mirrors + rdisk;
899 899
@@ -951,7 +951,7 @@ read_again:
951 goto read_again; 951 goto read_again;
952 } else 952 } else
953 generic_make_request(read_bio); 953 generic_make_request(read_bio);
954 return 0; 954 return;
955 } 955 }
956 956
957 /* 957 /*
@@ -1152,8 +1152,6 @@ read_again:
1152 1152
1153 if (do_sync || !bitmap || !plugged) 1153 if (do_sync || !bitmap || !plugged)
1154 md_wakeup_thread(mddev->thread); 1154 md_wakeup_thread(mddev->thread);
1155
1156 return 0;
1157} 1155}
1158 1156
1159static void status(struct seq_file *seq, struct mddev *mddev) 1157static void status(struct seq_file *seq, struct mddev *mddev)
@@ -2194,7 +2192,6 @@ static sector_t sync_request(struct mddev *mddev, sector_t sector_nr, int *skipp
2194 bio->bi_next = NULL; 2192 bio->bi_next = NULL;
2195 bio->bi_flags &= ~(BIO_POOL_MASK-1); 2193 bio->bi_flags &= ~(BIO_POOL_MASK-1);
2196 bio->bi_flags |= 1 << BIO_UPTODATE; 2194 bio->bi_flags |= 1 << BIO_UPTODATE;
2197 bio->bi_comp_cpu = -1;
2198 bio->bi_rw = READ; 2195 bio->bi_rw = READ;
2199 bio->bi_vcnt = 0; 2196 bio->bi_vcnt = 0;
2200 bio->bi_idx = 0; 2197 bio->bi_idx = 0;