[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d120d5000703301118j7db6813dt441ffd2ec36fb6cc@mail.gmail.com>
Date: Fri, 30 Mar 2007 14:18:30 -0400
From: "Dmitry Torokhov" <dmitry.torokhov@...il.com>
To: "James Bottomley" <James.Bottomley@...eleye.com>
Cc: "Tejun Heo" <htejun@...il.com>, gregkh@...e.de, hugh@...itas.com,
cornelia.huck@...ibm.com, oneukum@...e.de, maneesh@...ibm.com,
rpurdie@...ys.net, "Jeff Garzik" <jgarzik@...ox.com>,
lkml <linux-kernel@...r.kernel.org>,
"linux-ide@...r.kernel.org" <linux-ide@...r.kernel.org>,
"SCSI Mailing List" <linux-scsi@...r.kernel.org>
Subject: Re: [RFD driver-core] Lifetime problems of the current driver model
On 3/30/07, James Bottomley <James.Bottomley@...eleye.com> wrote:
> On Fri, 2007-03-30 at 09:15 -0400, Dmitry Torokhov wrote:
> > If you want to manage lifetime rules independently you might want to
> > not embed struct device into you subsystems objects but attach them
> > via pointers and use device_create(). Now that we orphan sysfs access
> > upon unregistering device this will severe all ties from driver core
> > to your system once you start teardown of a device and you should be
> > in clear.
>
> But that wouldn't really help ... all objects have lifetimes. What
> Tejun is pointing out is that we have two different lifetime
> requirements: driver internal (and subsystem) objects and sysfs
> objects ...
Exactly. If driver-private data structures have different lifetime
than device abstractions (like they seem to have with scsi and ide)
then you split them and refcount separately. We are just arguing where
to put the line. You want to split devices and kobjects and rework
infrastructure and I am saying that we already have infrastructure we
need and that split shoud be between generic device structure and
driver-managed device structure.
--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists