From owner-cvs-all@FreeBSD.ORG Wed Aug 11 01:27:54 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11D9716A4CE; Wed, 11 Aug 2004 01:27:54 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8ADE43D49; Wed, 11 Aug 2004 01:27:53 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i7B1Rrlv045345; Wed, 11 Aug 2004 01:27:53 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7B1Rrjx045344; Wed, 11 Aug 2004 01:27:53 GMT (envelope-from rwatson) Message-Id: <200408110127.i7B1Rrjx045344@repoman.freebsd.org> From: Robert Watson Date: Wed, 11 Aug 2004 01:27:53 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern vfs_subr.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 01:27:54 -0000 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