diff options
author | NeilBrown <neilb@suse.com> | 2016-11-09 10:21:32 +1100 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2016-11-09 17:14:28 -0800 |
commit | 6119e6792bcaf926cb284098042a576c1a55b513 (patch) | |
tree | 4c905b6ccb46cbdec1a63fe42ee5ecdf4b868901 /drivers/md/md.c | |
parent | be306c2989804ca5b90388df66fd3cf28ec74967 (diff) | |
download | linux-6119e6792bcaf926cb284098042a576c1a55b513.tar.gz linux-6119e6792bcaf926cb284098042a576c1a55b513.tar.bz2 linux-6119e6792bcaf926cb284098042a576c1a55b513.zip |
md: remove md_super_wait() call after bitmap_flush()
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>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index f389d8abe137..1f1c7f007b68 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -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)) || |