Revert r364310.
Some of the resulting fallout in CAM does not appear straightforward to fix, so simply revert the commit for now in the absence of a better solution. Discussed with: mjg Reported by: dhw
This commit is contained in:
parent
eda20682cb
commit
b21b022a81
@ -618,9 +618,6 @@ void *
|
||||
unsigned long osize = size;
|
||||
#endif
|
||||
|
||||
KASSERT((flags & M_WAITOK) == 0 || THREAD_CAN_SLEEP(),
|
||||
("malloc(M_WAITOK) in non-sleepable context"));
|
||||
|
||||
#ifdef MALLOC_DEBUG
|
||||
va = NULL;
|
||||
if (malloc_dbg(&va, &size, mtp, flags) != 0)
|
||||
|
@ -3328,9 +3328,6 @@ uma_zalloc_smr(uma_zone_t zone, int flags)
|
||||
uma_cache_bucket_t bucket;
|
||||
uma_cache_t cache;
|
||||
|
||||
KASSERT((flags & M_WAITOK) == 0 || THREAD_CAN_SLEEP(),
|
||||
("uma_zalloc_smr(M_WAITOK) in non-sleepable context"));
|
||||
|
||||
#ifdef UMA_ZALLOC_DEBUG
|
||||
void *item;
|
||||
|
||||
@ -3355,9 +3352,6 @@ uma_zalloc_arg(uma_zone_t zone, void *udata, int flags)
|
||||
uma_cache_bucket_t bucket;
|
||||
uma_cache_t cache;
|
||||
|
||||
KASSERT((flags & M_WAITOK) == 0 || THREAD_CAN_SLEEP(),
|
||||
("uma_zalloc(M_WAITOK) in non-sleepable context"));
|
||||
|
||||
/* Enable entropy collection for RANDOM_ENABLE_UMA kernel option */
|
||||
random_harvest_fast_uma(&zone, sizeof(zone), RANDOM_UMA);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user