aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 04348d76bb30..bde9da2baa39 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -4543,7 +4543,7 @@ static void raid5d(struct mddev *mddev)
4543 while (1) { 4543 while (1) {
4544 struct bio *bio; 4544 struct bio *bio;
4545 4545
4546 if (atomic_read(&mddev->plug_cnt) == 0 && 4546 if (
4547 !list_empty(&conf->bitmap_list)) { 4547 !list_empty(&conf->bitmap_list)) {
4548 /* Now is a good time to flush some bitmap updates */ 4548 /* Now is a good time to flush some bitmap updates */
4549 conf->seq_flush++; 4549 conf->seq_flush++;
@@ -4553,8 +4553,7 @@ static void raid5d(struct mddev *mddev)
4553 conf->seq_write = conf->seq_flush; 4553 conf->seq_write = conf->seq_flush;
4554 activate_bit_delay(conf); 4554 activate_bit_delay(conf);
4555 } 4555 }
4556 if (atomic_read(&mddev->plug_cnt) == 0) 4556 raid5_activate_delayed(conf);
4557 raid5_activate_delayed(conf);
4558 4557
4559 while ((bio = remove_bio_from_retry(conf))) { 4558 while ((bio = remove_bio_from_retry(conf))) {
4560 int ok; 4559 int ok;