md/raid1,raid10: fix deadlock with freeze_array()
[profile/ivi/kernel-adaptation-intel-automotive.git] / drivers / md / raid10.c
index 64d4824..8d925dc 100644 (file)
@@ -1073,6 +1073,7 @@ static void raid10_unplug(struct blk_plug_cb *cb, bool from_schedule)
                bio_list_merge(&conf->pending_bio_list, &plug->pending);
                conf->pending_count += plug->pending_cnt;
                spin_unlock_irq(&conf->device_lock);
+               wake_up(&conf->wait_barrier);
                md_wakeup_thread(mddev->thread);
                kfree(plug);
                return;