Subject: Re: m_get() returns NULL even with M_WAIT ?
To: Sami Kantoluoto <sami.kantoluoto@embedtronics.fi>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 08/05/2004 13:59:47
--Apple-Mail-18--384245922
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed


On Aug 5, 2004, at 9:09 AM, Sami Kantoluoto wrote:

> For me it seems that m_get() / MGET() and similar functions can return 
> NULL
> even with M_WAIT when hardlimit is reached. This is because 
> pool_cache_get()
> is called with PR_LIMITFAIL-flag. And most of callers of m_get() and
> similars trust that m_get() cannot fail.. Is it really so or do I just 
> miss
> something?

Maybe I'm missing something, but I don't see where a hard limit is ever 
set for mbpool, so PR_LIMITFAIL should be a no-op for that pool.

         -- Jason R. Thorpe <thorpej@wasabisystems.com>


--Apple-Mail-18--384245922
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFBEp/DOpVKkaBm8XkRAsYjAJ9Pyf9UhuE9WLUms3JI6xCgUA4VygCeNbYK
g6GmFt/Hr77tYJgPm/ciSSo=
=8crs
-----END PGP SIGNATURE-----

--Apple-Mail-18--384245922--