VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Zhang, Yanmin <yanmin_zhang@linux.intel.com> 2009-07-05 12:08:08 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2009-07-06 13:57:03 -0700 commit: 3beab0b42413e83a7907db7176b54c840fc75a81 parent: f386c61fe1a1f36f0e434f1b577e6b112698caf7
Commit Summary:
sys_sync(): fix 16% performance regression in ffsb create_4k test
Diffstat:
1 file changed, 5 insertions, 0 deletions
diff --git a/fs/sync.c b/fs/sync.c
index dd200025af85..3422ba61d86d 100644
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -112,8 +112,13 @@ restart:
 	mutex_unlock(&mutex);
 }
 
+/*
+ * sync everything.  Start out by waking pdflush, because that writes back
+ * all queues in parallel.
+ */
 SYSCALL_DEFINE0(sync)
 {
+	wakeup_pdflush(0);
 	sync_filesystems(0);
 	sync_filesystems(1);
 	if (unlikely(laptop_mode))