cvs commit: src/sys/kern vfs_lock.c

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Jun 29 20:58:49 PDT 2008


dillon      2008/06/29 20:57:41 PDT

DragonFly src repository

  Modified files:
    sys/kern             vfs_lock.c 
  Log:
  Fix a low-memory deadlock in the VM system which can occur on systems
  with small amounts of system memory.  The pageout daemon uses LK_TIMELOCK
  to avoid deadlocking on a vnode so it can continue operation.  This only
  works if lk_timo is non-zero, but all filesystems initialize their vnodes
  with a timeout of zero so the feature is defeated.  Adjust allocvnode()
  to guarantee that lk_timo is never zero.
  
  Revision  Changes    Path
  1.30      +8 -0      src/sys/kern/vfs_lock.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_lock.c.diff?r1=1.29&r2=1.30&f=u





More information about the Commits mailing list