aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/md/raid1.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index 019aa1840210..7c333b5a50fc 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -1947,7 +1947,7 @@ static int fix_sync_read_error(struct r1bio *r1_bio)
1947 return 1; 1947 return 1;
1948} 1948}
1949 1949
1950static int process_checks(struct r1bio *r1_bio) 1950static void process_checks(struct r1bio *r1_bio)
1951{ 1951{
1952 /* We have read all readable devices. If we haven't 1952 /* We have read all readable devices. If we haven't
1953 * got the block, then there is no hope left. 1953 * got the block, then there is no hope left.
@@ -2039,7 +2039,6 @@ static int process_checks(struct r1bio *r1_bio)
2039 2039
2040 bio_copy_data(sbio, pbio); 2040 bio_copy_data(sbio, pbio);
2041 } 2041 }
2042 return 0;
2043} 2042}
2044 2043
2045static void sync_request_write(struct mddev *mddev, struct r1bio *r1_bio) 2044static void sync_request_write(struct mddev *mddev, struct r1bio *r1_bio)
@@ -2057,8 +2056,8 @@ static void sync_request_write(struct mddev *mddev, struct r1bio *r1_bio)
2057 return; 2056 return;
2058 2057
2059 if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) 2058 if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery))
2060 if (process_checks(r1_bio) < 0) 2059 process_checks(r1_bio);
2061 return; 2060
2062 /* 2061 /*
2063 * schedule writes 2062 * schedule writes
2064 */ 2063 */