- Persist the caller's flags in the bucket allocation flags so we don't

lose a M_NOVM when we recurse into a bucket allocation.

Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
jeff 2013-06-19 02:30:32 +00:00
parent deb0fb926f
commit b81bfe8f58

View File

@ -2418,7 +2418,7 @@ zone_alloc_bucket(uma_zone_t zone, int flags)
int max;
max = zone->uz_count;
bflags = M_NOWAIT;
bflags = (flags & ~M_WAITOK) | M_NOWAIT;
if (zone->uz_flags & UMA_ZFLAG_CACHEONLY)
bflags |= M_NOVM;
bucket = bucket_alloc(zone->uz_count, bflags);