summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-04-14 13:47:10 +0000
committerjeff <jeff@FreeBSD.org>2002-04-14 13:47:10 +0000
commit2d333700d63e4fc79380e1e2d00205e5c5aa90b7 (patch)
tree66fe7b3878bdea4bf7db3f736f1efa2f629e2698 /crypto
parent8745059e4f7c816ee0f0b5fd0e603be493570c0e (diff)
downloadFreeBSD-src-2d333700d63e4fc79380e1e2d00205e5c5aa90b7.zip
FreeBSD-src-2d333700d63e4fc79380e1e2d00205e5c5aa90b7.tar.gz
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.
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud