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
.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
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
3 matches
Mail list logo