aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r--drivers/md/raid1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index 197f62681db5..9f7f8bee8442 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -2247,8 +2247,7 @@ static void raid1d(struct mddev *mddev)
2247 blk_start_plug(&plug); 2247 blk_start_plug(&plug);
2248 for (;;) { 2248 for (;;) {
2249 2249
2250 if (atomic_read(&mddev->plug_cnt) == 0) 2250 flush_pending_writes(conf);
2251 flush_pending_writes(conf);
2252 2251
2253 spin_lock_irqsave(&conf->device_lock, flags); 2252 spin_lock_irqsave(&conf->device_lock, flags);
2254 if (list_empty(head)) { 2253 if (list_empty(head)) {