[lkml]   [2011]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Linux 3.0 oopses when pulling a USB CDROM
On Sun, 3 Jul 2011, Andi Kleen wrote:

> > On my system, at least, the scsi_device's refcount dropped to 0 at the
> > right time. That wasn't the problem. The NULL pointer occurs because
> > the request_queue is used after the scsi_device has been removed from
> > visibility; among other things, __scsi_remove_device() sets
> > sdev->request_queue->queuedata to NULL.
> >
> > As the comment says, this causes the request function to reject all I/O
> > requests -- but not before trying to dereference the NULL pointer!
> Your explanation completely contradicts what James wrote earlier.

Yes, it does. I'm claiming that James was on a wrong track or looking
in the wrong direction.

> Maybe it's good if you guys come up with a common avenue of debugging
> before I try further.

It will be interesting to hear what James has to say about all this...

> > Would you like to try this patch to see if it fixes the problem? As I
> > said before, I'm not certain it's the best thing to do, but it worked
> > on my system.
> I can try next week.


> Is this patch likely to fix the RCU stall?

I have no idea. All I know about this RCU stall is what you wrote
before, i.e., that it happened once. No debugging information or
anything else. However if it happens again with the patch in place,
we'll be in a good position to figure the cause and fix it.

Alan Stern

 \ /
  Last update: 2011-07-03 17:33    [W:0.066 / U:2.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site