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))