Re: Host drivers and conversion of SCSI to the driver model

Mike Anderson
2003-06-27T19:07:39Z

Christoph Hellwig [hch@infradead.org] wrote:
> On Fri, Jun 27, 2003 at 01:56:59PM -0400, Alan Stern wrote:
> > I don't see how you can make that work without modifying parts of the
> > driver model core. After all, calls to a class_device attribute's show()
> > and store() methods don't go through the device driver or the bus driver;
> > they are demultiplexed within drivers/base/class.c.
>
> Right, the intention is to change the device model cope. See the dicussion
> about netdev refcounting on linux-netdev a while ago.
>

I looked over linux-netdev and can not pick out a thread on this
subject. Could you point to the thread or at least the subject of the
thread. I was wanting to see the consensus of the core change.

I have a set of patch running right now on top of scsi-misc-2.5
(1:a:stern_present 2:a:shost_present 3:a:shost_state 4:a:sdev_state)
that fix some release issues and adds a state attribute to shost and
sdev. The patch set does still have the show / store issue, but does
seem to cleanup better post a surprise removal call to scsi_remove_host.

-andmike
--
Michael Anderson
andmike@us.ibm.com