cvs commit: src/sys/fs/pseudofs pseudofs_vnops.c

John Baldwin jhb at
Wed Feb 22 09:24:58 PST 2006

jhb         2006-02-22 17:24:54 UTC

  FreeBSD src repository

  Modified files:
    sys/fs/pseudofs      pseudofs_vnops.c 
  Change pfs_visible() to optionally return a pointer to the process
  associated with the passed in pfs_node.  If it does return a pointer, it
  keeps the process locked.  This allows a lot of places that were calling
  pfind() again right after pfs_visible() to not have to do that and avoids
  races since we don't drop the proc lock just to turn around and lock it
  again.  This will become more important with future changes to fix races
  between procfs/ptrace and exit(2).  Also, removed a duplicate pfs_visible()
  call in pfs_getextattr().
  Reviewed by:    des
  MFC after:      1 week
  Revision  Changes    Path
  1.58      +44 -50    src/sys/fs/pseudofs/pseudofs_vnops.c

More information about the cvs-src mailing list