cvs commit: src/sys/kern vfs_syscalls.c vfs_vnops.c

Jeff Roberson jeff at
Tue Jun 14 01:14:41 GMT 2005

jeff        2005-06-14 01:14:40 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_syscalls.c vfs_vnops.c 
   - Remove vnode lock asserts at the end of vfs syscalls.  These asserts were
     used to ensure that we weren't exiting the syscall with a lock still
     held.  This wasn't safe, however, because we'd already executed a vput()
     and on a loaded system the vnode may have been free'd by the time we
     assert.  This functionality is also handled by the td_locks assert in
     userret, which doesn't tell you what the syscall was, but will at least
     panic before you deadlock.
  Sponsored by:   Isilon Systems, Inc.
  Discovred by:   Peter Holm
  Approved by:    re (blanket vfs)
  Revision  Changes    Path
  1.391     +0 -18     src/sys/kern/vfs_syscalls.c
  1.233     +0 -2      src/sys/kern/vfs_vnops.c

More information about the cvs-src mailing list