]> git.karo-electronics.de Git - linux-beck.git/commitdiff
md: remove md_super_wait() call after bitmap_flush()
authorNeilBrown <neilb@suse.com>
Tue, 8 Nov 2016 23:21:32 +0000 (10:21 +1100)
committerShaohua Li <shli@fb.com>
Thu, 10 Nov 2016 01:14:28 +0000 (17:14 -0800)
bitmap_flush() finishes with bitmap_update_sb(), and that finishes
with write_page(..., 1), so write_page() will wait for all writes
to complete.  So there is no point calling md_super_wait()
immediately afterwards.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c

index f389d8abe137d377044a413a63c664850cc8bc97..1f1c7f007b683ab6b50b8ca0bef505da8b04f23b 100644 (file)
@@ -5472,7 +5472,6 @@ static void __md_stop_writes(struct mddev *mddev)
        del_timer_sync(&mddev->safemode_timer);
 
        bitmap_flush(mddev);
-       md_super_wait(mddev);
 
        if (mddev->ro == 0 &&
            ((!mddev->in_sync && !mddev_is_clustered(mddev)) ||