git: kernel - Do a better job with the filesystem background sync

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Jan 10 15:39:15 PST 2011


commit 28271622aa9fc15ee04275cd2fbca1f3dccba1e3
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Jan 10 15:31:29 2011 -0800

    kernel - Do a better job with the filesystem background sync
    
    * Adjust code for MNT_LAZY, MNT_NOWAIT, and MNT_WAITOK to reflect
      the fact that they are three different flags and not enumeration
      constants.
    
    * HAMMER now sets VMSC_ONEPASS for MNT_LAZY syncs (background filesystem
      sync).  This generally reduces instances where the background sync
      winds up running continuously when heavy filesystem ops saturate
      the disk.  Fewer vnodes dirtied after the sync is initiated will get
      caught up in the sync.

Summary of changes:
 sys/kern/vfs_subr.c              |   13 ++++++++++++-
 sys/kern/vfs_sync.c              |    4 ++--
 sys/kern/vfs_syscalls.c          |    2 +-
 sys/sys/mount.h                  |    6 +++---
 sys/vfs/gnu/ext2fs/ext2_vfsops.c |    4 ++--
 sys/vfs/gnu/ext2fs/ext2_vnops.c  |    2 +-
 sys/vfs/hammer/hammer_ondisk.c   |   15 ++++++++++++---
 sys/vfs/msdosfs/msdosfs_vfsops.c |    4 ++--
 sys/vfs/nfs/nfs_vfsops.c         |    2 +-
 sys/vfs/nwfs/nwfs_vfsops.c       |    2 +-
 sys/vfs/smbfs/smbfs_vfsops.c     |    2 +-
 sys/vfs/ufs/ffs_softdep.c        |   18 +++++++++---------
 sys/vfs/ufs/ffs_vfsops.c         |    2 +-
 13 files changed, 48 insertions(+), 28 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/28271622aa9fc15ee04275cd2fbca1f3dccba1e3


-- 
DragonFly BSD source repository





More information about the Commits mailing list