diff options
-rw-r--r-- | drivers/md/raid5.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 8ea8443e09d5..9fc6737e9713 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -5727,7 +5727,8 @@ static bool raid5_make_request(struct mddev *mddev, struct bio * bi) | |||
5727 | do_flush = false; | 5727 | do_flush = false; |
5728 | } | 5728 | } |
5729 | 5729 | ||
5730 | set_bit(STRIPE_HANDLE, &sh->state); | 5730 | if (!sh->batch_head) |
5731 | set_bit(STRIPE_HANDLE, &sh->state); | ||
5731 | clear_bit(STRIPE_DELAYED, &sh->state); | 5732 | clear_bit(STRIPE_DELAYED, &sh->state); |
5732 | if ((!sh->batch_head || sh == sh->batch_head) && | 5733 | if ((!sh->batch_head || sh == sh->batch_head) && |
5733 | (bi->bi_opf & REQ_SYNC) && | 5734 | (bi->bi_opf & REQ_SYNC) && |