Date: Sat, 15 Nov 2003 17:11:11 -0800 (PST) From: Don Lewis <truckman@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/fs/fifofs fifo_vnops.c Message-ID: <200311160111.hAG1BB64020340@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311160111.hAG1BB64020340>