1
0
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:
Christian S.J. Peron 2006-11-24 22:14:37 +00:00
parent f523369da9
commit 5cd3e3457f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164597

View File

@ -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