Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Jason R Thorpe <thorpej@netbsd.org>
List: source-changes
Date: 05/10/2001 07:51:42
Module Name:	syssrc
Committed By:	thorpej
Date:		Thu May 10 04:51:41 UTC 2001

Modified Files:
	syssrc/sys/kern: subr_pool.c
	syssrc/sys/sys: pool.h

Log Message:
Rearrange the code that adds pages of objects to the pool; require
that the caller allocate the pool_item_header when it allocates the
pool page, so we can avoid a locking pitfall (sleeping with a simple
lock held).

Also revive pool_prime(), as there are some letigimate uses of it,
but in doing so, eliminate some of the bogosities of the old version
(i.e. don't do an implicit "setlowat", just prime the pool, and incr
the minpages for each additional page we add, and compute the number
of pages to prime in a way that callers would expect).


To generate a diff of this commit:
cvs rdiff -r1.54 -r1.55 syssrc/sys/kern/subr_pool.c
cvs rdiff -r1.22 -r1.23 syssrc/sys/sys/pool.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.