Date: Thu, 29 Jan 2009 11:03:57 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/fs/pseudofs pseudofs_vncache.c Message-ID: <200901291104.n0TB4983042121@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2009-01-29 11:03:57 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/fs/pseudofs pseudofs_vncache.c Log: SVN rev 187887 on 2009-01-29 11:03:57Z by kib MFC r186560: After the pfs_vncache_mutex is dropped, another thread may attempt to do pfs_vncache_alloc() for the same pfs_node and pid. In this case, we could end up with two vnodes for the pair. Recheck the cache under the locked pfs_vncache_mutex after all sleeping operations are done. Do not call free() on the struct pfs_vdata after insmntque() failure, because vp->v_data points to the structure, and pseudofs_reclaim() frees it by the call to pfs_vncache_free(). MFC r186981 (by marcus): vput the vnode. Revision Changes Path 1.38.2.1 +27 -13 src/sys/fs/pseudofs/pseudofs_vncache.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901291104.n0TB4983042121>