Re: [PATCH 2.5.bk] allow sbp2 driver to compile again

Stelian Pop (stelian.pop@fr.alcove.com)
Wed, 30 Oct 2002 16:04:22 +0100


On Wed, Oct 30, 2002 at 09:37:20AM -0500, Ben Collins wrote:

> > While we are at it, there are a lot of 'bad: scheduling while atomic!'
> > and 'sleeping function called from illegal context' when loading
> > the ohci1394/sbp2 drivers (detailed stack available when compiling
> > with CONFIG_DEBUG_KERNEL)...
>
> Yeah, I've noticed aswell. Problem is I don't have a machine that runs
> 2.5.x stable enough to do some testing.

A quick look shows that (most of) the problems come from
highlevel.c, in the add_host etc. methods, where each driver
add_host etc. methods are called (which do kmallocs and schedules)
while a read_lock is taken.

Stelian.

-- 
Stelian Pop <stelian.pop@fr.alcove.com>
Alcove - http://www.alcove.com
-
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/