From bd7f4eab0f99ea0fd9bf1dd69ee8366a50c9c6ef Mon Sep 17 00:00:00 2001 From: "Zhang, Yanmin" Date: Sun, 5 Jul 2009 12:08:08 -0700 Subject: [PATCH] --- yaml --- r: 154908 b: refs/heads/master c: 3beab0b42413e83a7907db7176b54c840fc75a81 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/sync.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index b9fde8c2670b..9410081c5444 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f386c61fe1a1f36f0e434f1b577e6b112698caf7 +refs/heads/master: 3beab0b42413e83a7907db7176b54c840fc75a81 diff --git a/trunk/fs/sync.c b/trunk/fs/sync.c index dd200025af85..3422ba61d86d 100644 --- a/trunk/fs/sync.c +++ b/trunk/fs/sync.c @@ -112,8 +112,13 @@ static void sync_filesystems(int wait) 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))