Re: BUG REPORT: terminal hangs when I load the sd_mod module

From: Patrick Mansfield
Date: Tue Oct 21 2003 - 13:22:36 EST


On Mon, Oct 20, 2003 at 11:30:49PM -0400, Chris Friesen wrote:

> When I try and load the sd_mod module, that terminal just simply freezes
> and I can't break out. Similarly, if I compile scsi disk support right
> into the kernel, it sits forever at boot time. I have the following
> options set in my .config.

> This problem has been present since at least -test6. Any ideas what's
> going on?

Maybe the MODE SENSE page cache is causing problems (known problem with
some USB storage devices), triggering the error (i.e. timeout) handler to
run, leading to the command being retried forever.

Turn on all scsi logging (you must be logging and booting over IDE, so
the following won't cause infinite logging):

sysctl -w dev.scsi.logging_level=0xffffffff

Also get a trace of the hung process via sysrq.

After you get that data, try removing sd_do_mode_sense() calls in sd.c to
see if MODE SENSE commands are causing problems.

You could also try using sg (sg_utils) to send a MODE SENSE page 8, and
see what happens.

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