Re: owner field in `struct fs'

From: Philipp Rumpf (prumpf@uzix.org)
Date: Sun Jun 25 2000 - 10:33:17 EST


On Sun, Jun 25, 2000 at 01:04:43PM +0100, Alan Cox wrote:
> > > sleeping in cleanup module
> > > open /dev/hda
> > > ????????
> >
> > Shouldn't be able to happen, because /dev/hda should not exist if the
> > module refcount is zero. Except for the register_netdevice problem.
>
> /dev/hda always exists
>
> The user is opening it so needs to load the module for it. The module for it
> is still being unloaded.

The clean solution is a read-write semaphore for the module list. For
unloading we grab the semaphore as a writer, insmod sleeps on it.

Actually, Rusty has been looking into that, and run into minor problems
which I'm sure he'll have solved RSN.

        Philipp

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



This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 21:00:07 EST