Re: [bk/patch] driver model update: device_unregister()

From: Alexander Viro (viro@math.psu.edu)
Date: Wed Oct 09 2002 - 14:26:12 EST


On Wed, 9 Oct 2002, Linus Torvalds wrote:

>
> In other words, if you think that it is reasonable to have an assocation
> from the MD device to the list of partitions that are part of that MD
> device, then you _need_ to have a "partition node", because otherwise you
> cannot have the pointer to it. See?
>
> So your "partition side" vs "filesystem side" thing doesn't matter. It
> doesn't matter which side the associations are, you need to have a node to
> associate _with_.
>
> Noth sides need a node. Even if the relationship is only going in one
> direction.

*eeek*

Even aside of the problems with putting filesystems (and filesystem types)
into driverfs (can_unload() for each fs module?), partitions _ARE_ reused.
So logics with ->release() will be a killer.

Do you really want to do that?

-
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 : Tue Oct 15 2002 - 22:00:33 EST