X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=drivers%2Fmd%2Fmd.c;h=dd3dfe42d5a9d081c590018f1ac6325cfecdaf12;hb=404e4b43fdd6daa7b4a9f81bc7e4358281d763fa;hp=c4bdf0601757f21f4b825993ff30a98205f74cf5;hpb=7fb9dadc91948ddd16d1d32e414b5e71ec63b97b;p=deliverable%2Flinux.git diff --git a/drivers/md/md.c b/drivers/md/md.c index c4bdf0601757..dd3dfe42d5a9 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -6473,10 +6473,11 @@ void md_do_sync(mddev_t *mddev) mddev->curr_resync = 2; try_again: - if (kthread_should_stop()) { + if (kthread_should_stop()) set_bit(MD_RECOVERY_INTR, &mddev->recovery); + + if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) goto skip; - } for_each_mddev(mddev2, tmp) { if (mddev2 == mddev) continue;