Make sure we do not sleep while locks are held. Change the malloc(9)
flags from M_WAITOK to M_NOWAIT. This should not cause any problems since the calling code appears to properly handle failed allocations. Discussed with: kmacy
This commit is contained in:
parent
f523369da9
commit
5cd3e3457f
@ -145,7 +145,7 @@ mdesc_buf_free(void *buf, size_t align)
|
||||
static void *
|
||||
mdesc_meta_alloc(size_t size)
|
||||
{
|
||||
return malloc(size, M_MDPROP, M_WAITOK);
|
||||
return malloc(size, M_MDPROP, M_NOWAIT);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user