Re: Kernel deadlock using nbd over acenic driver

From: Pavel Machek (pavel@suse.cz)
Date: Wed May 29 2002 - 06:21:37 EST


Hi!

> > > Look in some of the block drivers, floppy.c or loop.c. These do call
> > > the task queue, even though that's only as an aid to the rest of the
> > > kernel, because they know they can help at that point, and it's not at
> > > all clear what context they're in. Perhaps it's best to look in
> > > floppy.c, which runs the task queue in its init routine! I mean to say
> >
> > Init routine is called from insmod context or at kernel bootup (from pid==1).
>
> That's nitpicking!

I did not want to be nitpicking. init() really is considered process
context, and it looks to me like unplug is *blocking* operation so it
really needs proceess context.
                                                                        Pavel

-- 
(about SSSCA) "I don't say this lightly.  However, I really think that the U.S.
no longer is classifiable as a democracy, but rather as a plutocracy." --hpa
-
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/



This archive was generated by hypermail 2b29 : Fri May 31 2002 - 22:00:24 EST