cvs commit: src/sys/kern vfs_subr.c

Jeff Roberson jeff at FreeBSD.org
Sat Oct 4 08:10:42 PDT 2003


jeff        2003/10/04 08:10:40 PDT

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_subr.c 
  Log:
   - In a Giantless world, the vn_lock() in vcanrecycle() could legitimately
     fail.  Remove the panic from that case and document why it might fail.
   - Document the reason for calling cache_purge() on a newly created vnode.
   - In insmntque() order the operations so that we can call mtx_unlock()
     one fewer times.  This makes the code somewhat clearer as well.
   - Add XXX comments in sched_sync() and vflush().
   - In vget(), do not sleep while waiting for XLOCK to clear if LK_NOWAIT is
     set.
   - In vclean() we don't need to acquire a lock around a single TAILQ_FIRST
     call.  It's ok if we race here, the vinvalbuf will just do nothing.
   - Increase the scope of the lock in vgonel() to reduce the number of lock
     operations that are performed.
  
  Revision  Changes    Path
  1.459     +22 -21    src/sys/kern/vfs_subr.c


More information about the cvs-src mailing list