|
|
@@ -2704,6 +2704,11 @@ static void handle_write_completed(struct r10conf *conf, struct r10bio *r10_bio)
|
|
|
list_add(&r10_bio->retry_list, &conf->bio_end_io_list);
|
|
|
conf->nr_queued++;
|
|
|
spin_unlock_irq(&conf->device_lock);
|
|
|
+ /*
|
|
|
+ * In case freeze_array() is waiting for condition
|
|
|
+ * nr_pending == nr_queued + extra to be true.
|
|
|
+ */
|
|
|
+ wake_up(&conf->wait_barrier);
|
|
|
md_wakeup_thread(conf->mddev->thread);
|
|
|
} else {
|
|
|
if (test_bit(R10BIO_WriteError,
|