Date: Sun, 14 Apr 2002 06:47:10 -0700 (PDT) From: Jeff Roberson <jeff@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/vm uma_core.c Message-ID: <200204141347.g3EDlAT88692@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204141347.g3EDlAT88692>