cvs commit: src/sys/kern vfs_subr.c

Robert Watson rwatson at FreeBSD.org
Tue Aug 10 18:27:54 PDT 2004


rwatson     2004-08-11 01:27:53 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_subr.c 
  Log:
  In  v_addpollinfo(), we allocate storage to back vp->v_pollinfo.  However,
  we may sleep when doing so; check that we didn't race with another thread
  allocating storage for the vnode after allocation is made to a local
  pointer, and only update the vnode pointer if it's still NULL.  Otherwise,
  accept that another thread got there first, and release the local storage.
  
  Discussed with: jmg
  
  Revision  Changes    Path
  1.520     +7 -1      src/sys/kern/vfs_subr.c


More information about the cvs-src mailing list