git: kernel - Fix sync() system call

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Dec 12 23:21:59 PST 2012


commit 904805eac126f39eac09b5360a109c2a5b38367a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Dec 12 23:19:43 2012 -0800

    kernel - Fix sync() system call
    
    * The sync() system call was syncing the filesystems MNT_NOWAIT | MNT_LAZY.
      We need the MNT_NOWAIT to avoid an endless sync on a busy filesystem, but
      MNT_LAZY is another issue entirely.
    
    * Remove the MNT_LAZY from the sync() system call, it can cause whole
      files to not be synced.  It is meant only to be used by the automatic
      kernel 30-second sync (which eventually gets everything flushed out).

Summary of changes:
 sys/kern/vfs_syscalls.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/904805eac126f39eac09b5360a109c2a5b38367a


-- 
DragonFly BSD source repository


More information about the Commits mailing list