markj 2a6ec75286 Check the UMA zone's full bucket cache before short-circuiting an alloc.
The global "bucketdisable" flag indicates that we are in a low memory
situation and should avoid allocating buckets.  However, in the
allocation path we were checking it before the full bucket cache and
bailing even if the cache is non-empty.  Defer the check so that we have
a shot at allocating from the cache.

This came up because M_NOWAIT allocations from the buf trie node zone
must always succeed.  In one scenario, all of the preallocated trie
nodes were in the bucket list, and a new slab allocation could not
succeed due to a memory shortage.  The short-circuiting caused an
allocation failure which triggered a panic.

Reported by:	pho
Reviewed by:	cem
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D25980
2020-08-10 20:34:45 +00:00
..
2020-08-06 11:18:06 +00:00
2020-04-24 01:27:25 +00:00
2020-08-07 23:06:40 +00:00
2020-07-30 23:54:25 +00:00
2020-06-21 03:39:26 +00:00
2020-06-04 17:20:58 +00:00
2020-07-27 16:31:21 +00:00
2020-05-23 17:51:06 +00:00
2020-07-31 11:28:09 +00:00
2020-08-06 21:37:38 +00:00
2020-08-05 22:09:40 +00:00
2020-06-21 02:49:56 +00:00
2020-08-07 23:06:40 +00:00
2020-02-03 17:35:11 +00:00