mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164597
@ -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…
Reference in New Issue
Block a user