diff options
Diffstat (limited to 'drivers/md/raid5.c')
| -rw-r--r-- | drivers/md/raid5.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 259f519814ca..87a2d0bdedd1 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
| @@ -4562,7 +4562,7 @@ static void raid5d(struct mddev *mddev) | |||
| 4562 | while (1) { | 4562 | while (1) { |
| 4563 | struct bio *bio; | 4563 | struct bio *bio; |
| 4564 | 4564 | ||
| 4565 | if (atomic_read(&mddev->plug_cnt) == 0 && | 4565 | if ( |
| 4566 | !list_empty(&conf->bitmap_list)) { | 4566 | !list_empty(&conf->bitmap_list)) { |
| 4567 | /* Now is a good time to flush some bitmap updates */ | 4567 | /* Now is a good time to flush some bitmap updates */ |
| 4568 | conf->seq_flush++; | 4568 | conf->seq_flush++; |
| @@ -4572,8 +4572,7 @@ static void raid5d(struct mddev *mddev) | |||
| 4572 | conf->seq_write = conf->seq_flush; | 4572 | conf->seq_write = conf->seq_flush; |
| 4573 | activate_bit_delay(conf); | 4573 | activate_bit_delay(conf); |
| 4574 | } | 4574 | } |
| 4575 | if (atomic_read(&mddev->plug_cnt) == 0) | 4575 | raid5_activate_delayed(conf); |
| 4576 | raid5_activate_delayed(conf); | ||
| 4577 | 4576 | ||
| 4578 | while ((bio = remove_bio_from_retry(conf))) { | 4577 | while ((bio = remove_bio_from_retry(conf))) { |
| 4579 | int ok; | 4578 | int ok; |
