cvs commit: src/sys/kern vfs_mount.c

Jeff Roberson jeff at FreeBSD.org
Tue Feb 21 22:29:56 PST 2006


jeff        2006-02-22 06:29:55 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_mount.c 
  Log:
   - We can not hold a vnode lock while we do a lookup.  Search for and load
     modules prior to looking up the directory which we will cover to avoid
     this problem in mount.
   - We must hold the coveredvp locked before we can busy the mountpoint to
     prevent a lock order reversal with the vfs_busy() in lookup which holds
     the directory lock prior to doing a vfs_busy().  The directory lock is
     required to safely clear the v_mountedhere field on the directory.
  
  MFC After:      1 week
  
  Revision  Changes    Path
  1.217     +25 -19    src/sys/kern/vfs_mount.c


More information about the cvs-src mailing list