diff options
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 508a29bd4733..a9604d4392ee 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -755,6 +755,10 @@ static void unlock_two_stripes(struct stripe_head *sh1, struct stripe_head *sh2) | |||
755 | /* Only freshly new full stripe normal write stripe can be added to a batch list */ | 755 | /* Only freshly new full stripe normal write stripe can be added to a batch list */ |
756 | static bool stripe_can_batch(struct stripe_head *sh) | 756 | static bool stripe_can_batch(struct stripe_head *sh) |
757 | { | 757 | { |
758 | struct r5conf *conf = sh->raid_conf; | ||
759 | |||
760 | if (conf->log) | ||
761 | return false; | ||
758 | return test_bit(STRIPE_BATCH_READY, &sh->state) && | 762 | return test_bit(STRIPE_BATCH_READY, &sh->state) && |
759 | !test_bit(STRIPE_BITMAP_PENDING, &sh->state) && | 763 | !test_bit(STRIPE_BITMAP_PENDING, &sh->state) && |
760 | is_full_stripe_write(sh); | 764 | is_full_stripe_write(sh); |