md/raid1,raid10: fix deadlock with freeze_array()
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / md / raid10.c
index 61ed150bd0cf6e065443e83d9bfd5efb73c2fbe7..77b562d18a90c4d27d9a5c43e82518e174ed84c7 100644 (file)
@@ -1119,6 +1119,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;