]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/md/md.c
md: make sure a reshape is started when device switches to read-write
[linux-2.6-omap-h63xx.git] / drivers / md / md.c
index a71241c5ae72e7ed86152e5eeb98f1907df8f766..a986845ea0c332013bab98d4df3f2061d1c3175e 100644 (file)
@@ -5356,6 +5356,7 @@ void md_write_start(mddev_t *mddev, struct bio *bi)
                mddev->ro = 0;
                set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
                md_wakeup_thread(mddev->thread);
+               md_wakeup_thread(mddev->sync_thread);
        }
        atomic_inc(&mddev->writes_pending);
        if (mddev->in_sync) {