diff --git a/fs/sync.c b/fs/sync.c index c80c2e658b09..d4bb6d25b1de 100644 --- a/fs/sync.c +++ b/fs/sync.c @@ -117,6 +117,7 @@ SYSCALL_DEFINE0(sync) static void do_sync_work(struct work_struct *work) { int nowait = 0; + int wait = 1; /* * Sync twice to reduce the possibility we skipped some inodes / pages @@ -126,7 +127,7 @@ static void do_sync_work(struct work_struct *work) iterate_supers(sync_fs_one_sb, &nowait); sync_bdevs(false); iterate_supers(sync_inodes_one_sb, NULL); - iterate_supers(sync_fs_one_sb, &nowait); + iterate_supers(sync_fs_one_sb, &wait); sync_bdevs(false); printk("Emergency Sync complete\n"); kfree(work);