|
@@ -1172,6 +1172,13 @@ static void __make_request(struct mddev *mddev, struct bio *bio)
|
|
|
int max_sectors;
|
|
|
int sectors;
|
|
|
|
|
|
+ /*
|
|
|
+ * Register the new request and wait if the reconstruction
|
|
|
+ * thread has put up a bar for new requests.
|
|
|
+ * Continue immediately if no resync is active currently.
|
|
|
+ */
|
|
|
+ wait_barrier(conf);
|
|
|
+
|
|
|
sectors = bio_sectors(bio);
|
|
|
while (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) &&
|
|
|
bio->bi_iter.bi_sector < conf->reshape_progress &&
|
|
@@ -1552,12 +1559,6 @@ static void make_request(struct mddev *mddev, struct bio *bio)
|
|
|
|
|
|
md_write_start(mddev, bio);
|
|
|
|
|
|
- /*
|
|
|
- * Register the new request and wait if the reconstruction
|
|
|
- * thread has put up a bar for new requests.
|
|
|
- * Continue immediately if no resync is active currently.
|
|
|
- */
|
|
|
- wait_barrier(conf);
|
|
|
|
|
|
do {
|
|
|
|