aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/md/raid5.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 92ef9b6abfc7..1f444ae07f89 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -3702,7 +3702,8 @@ static int make_request(struct request_queue *q, struct bio * bi)
3702 /* FIXME what if we get a false positive because these 3702 /* FIXME what if we get a false positive because these
3703 * are being updated. 3703 * are being updated.
3704 */ 3704 */
3705 if (logical_sector >= mddev->suspend_lo && 3705 if (bio_data_dir(bi) == WRITE &&
3706 logical_sector >= mddev->suspend_lo &&
3706 logical_sector < mddev->suspend_hi) { 3707 logical_sector < mddev->suspend_hi) {
3707 release_stripe(sh); 3708 release_stripe(sh);
3708 schedule(); 3709 schedule();