lkml.org 
[lkml]   [2004]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.6.2-rc1-mm2: sleep_on_timeout with parport
On Sun, Jan 25, 2004 at 04:55:01PM +0100, Jan Ischebeck wrote:
> Trying to print without switching the printer on I got the following
> error messages.
>
> lp0 out of paper
> Badness in interruptible_sleep_on_timeout at kernel/sched.c:2245
> Call Trace:
> [<c0121a6f>] interruptible_sleep_on_timeout+0x10f/0x120
> [<c0121500>] default_wake_function+0x0/0x20
> [<e0a34e5f>] parport_release+0x7f/0x140 [parport]

Yeah... parport locking primitives (and, frankly, the rest of parport
API) apparently had been designed on serious drugs.

I'm cleaning up that crap; some patches are already in -mm, more will
follow. In particular, yes, parprt_claim()/parport_claim_or_block()/
parport_release() is racy and most of the users have problems with
missing wakeups.
-
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: 2005-03-22 14:00    [W:0.036 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site