diff options
author | csjp <csjp@FreeBSD.org> | 2006-11-24 22:14:37 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2006-11-24 22:14:37 +0000 |
commit | f3bb6f67874aebe5550daf553367291a8b5f7db0 (patch) | |
tree | a9268afd7c18bca207271bc3b91c4a7785663c4a /sys/sun4v | |
parent | 8a9570c484bc5b927d14e6883cfbf78dc1f8d1fa (diff) | |
download | FreeBSD-src-f3bb6f67874aebe5550daf553367291a8b5f7db0.zip FreeBSD-src-f3bb6f67874aebe5550daf553367291a8b5f7db0.tar.gz |
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
Diffstat (limited to 'sys/sun4v')
-rw-r--r-- | sys/sun4v/mdesc/mdesc_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sun4v/mdesc/mdesc_init.c b/sys/sun4v/mdesc/mdesc_init.c index 63b9ffe..eed9493 100644 --- a/sys/sun4v/mdesc/mdesc_init.c +++ b/sys/sun4v/mdesc/mdesc_init.c @@ -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 |