Date: Wed, 11 Aug 2004 01:27:53 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_subr.c Message-ID: <200408110127.i7B1Rrjx045344@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408110127.i7B1Rrjx045344>