lkml.org 
[lkml]   [2007]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ALSA: use __devexit_p
At Sat, 23 Jun 2007 18:50:57 -0400,
Jeff Garzik wrote:
>
> This reminds me...
>
> Someone needs to go through ALSA and audit all delays executed via
> $FOO_interruptible().
>
> Several delays within ALSA wait for hardware conditions, and do not
> check for signals pending, which means that the wait-for-condition loop
> becomes a busy loop:
>
> while (1) {
> foo = read_hardware()
> if (foo & interesting_bits)
> break;
> schedule_timeout_interruptible(1);
> }
>
> The proper fix is (a) remove "_interruptible" [recommended] or (b) check
> for signals.
>
> grep'ing for "_interruptible" quickly finds several such ALSA bugs.

Yep... I fixed now on ALSA tree. Thanks for hints!


Takashi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-06-25 12:49    [W:0.169 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site