cvs commit: src/sys/fs/fifofs fifo_vnops.c

Don Lewis truckman at FreeBSD.org
Sat Nov 15 17:11:13 PST 2003


truckman    2003/11/15 17:11:11 PST

  FreeBSD src repository

  Modified files:
    sys/fs/fifofs        fifo_vnops.c 
  Log:
  Use "fip->fi_readers == 0 && fip->fi_writers == 0" as the condition for
  disposing fifo resources in fifo_cleanup() instead using of
  "vp->v_usecount == 1".  There may be other references to the vnode, for
  instance by nullfs, at the time fifo_open() or fifo_close() is called,
  which could cause a resource leak.
  
  Don't bother grabbing the vnode interlock in fifo_cleanup() since it no
  longer accesses v_usecount.
  
  Revision  Changes    Path
  1.91      +3 -6      src/sys/fs/fifofs/fifo_vnops.c


More information about the cvs-src mailing list