MFC: Allow recursion on the 'zones' internal UMA zone.

This commit is contained in:
jhb 2007-10-18 18:45:53 +00:00
parent 859d90bad0
commit bea8fbc3a5

View File

@ -1980,7 +1980,7 @@ uma_zone_slab(uma_zone_t zone, int flags)
* caller can't handle that.
*/
if (keg->uk_flags & UMA_ZFLAG_INTERNAL && keg->uk_recurse != 0)
if ((zone != slabzone) && (zone != slabrefzone))
if (zone != slabzone && zone != slabrefzone && zone != zones)
return (NULL);
slab = NULL;