Re: CHN_LOCK()

2002-06-15 Thread Terry Lambert
Maxime Henrion wrote: > Calling malloc() with M_NOWAIT isn't a good fix as well, because there > is no reason to make this code fail if memory if not available at the > moment, and not have it sleep for it instead. M_NOWAIT should only be > used while in interrupt context, as far as I know. The

Re: CHN_LOCK()

2002-06-15 Thread Maxime Henrion
.c:713 > heyeh, Jun 14 23:44:38 teqnix kernel: /usr/src/sys/vm/uma_core.c:1327: could > sleep with > "pcm0:play:0" locked from /usr/src/sys/dev/sound/pcm/dsp.c:713 [...] > To avoid this, I was wondering if I could change CHN_LOCK() to use > spin locks instead of slee

CHN_LOCK()

2002-06-15 Thread Evan Sarmiento
rc/sys/vm/uma_core.c:1327: could sleep with "pcm0:play:0" locked from /usr/src/sys/dev/sound/pcm/dsp.c:713 To avoid this, I was wondering if I could change CHN_LOCK() to use spin locks instead of sleeping mutex locks? Of course I would make it so that mtx_init has RECURS.. would this