lkml.org 
[lkml]   [2002]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Reproducible SMP kernel deadlock in SCSI generic driver (sg)
Jurgen Botz <jurgen@botz.org>
> The sg module reproducibly deadlocks the kernel for me after some time
> of heavy I/O on an SMP system. This appears to be true in /all/ kernel
> versions... I can reproduce it very reliably now in 2.4.19-pre8 and
> 2.5.13, and I've had problems with CD ripping on my SMP workstation at
> least throughout the 2.4 series (I just never fully investigated before).
> The bug is almost certainly in sg.c; here is what I've narrowed down...

Jurgen,
Which version of cdparanoia (or whatever) are you using?
You mention deadlock, is the machine completely locked
up or is sg and the device inoperable? Since sg doesn't
take any "big" locks (e.g. io_request_lock) then it
shouldn't be able to lock up your machine without help
(from other drivers).

Assuming you can still execute commands on your box after the
"deadlock", I'm interested in WCHAN from ps. Here are some
ps variants:
ps -eo cmd,wchan
ps -eo fname,tty,pid,stat,pcpu,wchan
ps -eo pid,stat,pcpu,nwchan,wchan=WIDE-WCHAN-COLUMN -o args
The line for cdparanoia would be useful.

BTW ps needs to find the correct System.map for
the WCHAN output to be relevant.

Doug Gilbert
-
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 13:25    [W:0.023 / U:0.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site