From owner-cvs-all Sun Apr 14 6:47:13 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 978C837B400; Sun, 14 Apr 2002 06:47:10 -0700 (PDT) Received: (from jeff@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3EDlAT88692; Sun, 14 Apr 2002 06:47:10 -0700 (PDT) (envelope-from jeff) Message-Id: <200204141347.g3EDlAT88692@freefall.freebsd.org> From: Jeff Roberson Date: Sun, 14 Apr 2002 06:47:10 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/vm uma_core.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jeff 2002/04/14 06:47:10 PDT Modified files: sys/vm uma_core.c Log: Fix a witness warning when expanding a hash table. We were allocating the new hash while holding the lock on a zone. Fix this by doing the allocation seperately from the actual hash expansion. The lock is dropped before the allocation and reacquired before the expansion. The expansion code checks to see if we lost the race and frees the new hash if we do. We really never will lose this race because the hash expansion is single threaded via the timeout mechanism. Revision Changes Path 1.14 +79 -38 src/sys/vm/uma_core.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message