public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] scsi host sysfs support again [0/4]
@ 2003-05-05  8:33 Mike Anderson
  2003-05-05  8:34 ` [RFC] scsi host sysfs support again [1/4] Mike Anderson
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Mike Anderson @ 2003-05-05  8:33 UTC (permalink / raw)
  To: linux-scsi; +Cc: Patrick Mochel

Here is update to the scsi host sysfs support. This patch uses the
reworked class and class_device support.

This patch set is against scsi-misc-2.5.

This patch set changes the sysfs support for scsi hosts.
- Removes the previous support of shost_devclass device class.

- Added support for sysfs class and class_device.

- scsi host now contains a struct device and will have its parent pointer
  set to the device passed in to scsi_add_host, the device passed in to
  scsi_set_device, or set to the legacy_bus.

- scsi_host class children list is now equal to scsi_host_list. scsi host
  host_gendev children list is not equal to my_devices.

- Modifies scsi_debug to support the new order of object cleanup and also
  changes the structure of sdebug_host_info to help in object cleanup.

This change allows for host cleanup when sysfs references drop to zero
(there still is more work to be done).

I have tested the insmod / rmmod cycle with scsi_debug and booted with the
ips and aic drivers.

Current Known Issues:
	- Current users of scsi_remove_host will need to have there
	  cleanup reordered to support the restoration of the call to the
	  Scsi_Host_Template release.
	- Callers of scsi_set_device should be migrated off this interface
	  if possible.
	
Example tree:

# tree /sys/class/scsi_host
/sys/class/scsi_host
|-- host0
|   |-- cmd_per_lun
|   |-- device -> ../../../devices/pci0/00:09.0/host0
|   |-- host_busy
|   |-- sg_tablesize
|   |-- unchecked_isa_dma
|   `-- unique_id
|-- host1
|   |-- cmd_per_lun
|   |-- device -> ../../../devices/pci1/01:03.0/host1
|   |-- host_busy
|   |-- sg_tablesize
|   |-- unchecked_isa_dma
|   `-- unique_id
`-- host3
    |-- cmd_per_lun
    |-- device -> ../../../devices/pci1/01:03.1/host3
    |-- host_busy
    |-- sg_tablesize
    |-- unchecked_isa_dma
    `-- unique_id

# tree /sys/bus/scsi/devices
/sys/bus/scsi/devices
|-- 0:0:0:0 -> ../../../devices/pci0/00:09.0/host0/0:0:0:0

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


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2003-05-08  1:29 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-05  8:33 [RFC] scsi host sysfs support again [0/4] Mike Anderson
2003-05-05  8:34 ` [RFC] scsi host sysfs support again [1/4] Mike Anderson
2003-05-05  8:35   ` [RFC] scsi host sysfs support again [2/4] Mike Anderson
2003-05-05  8:37     ` [RFC] scsi host sysfs support again [3/4] Mike Anderson
2003-05-05  8:38       ` [RFC] scsi host sysfs support again [4/4] Mike Anderson
2003-05-05  8:38 ` [RFC] scsi host sysfs support again [0/4] Christoph Hellwig
2003-05-05  9:40   ` Douglas Gilbert
2003-05-05 10:00     ` Mike Anderson
2003-05-05  9:48   ` Mike Anderson
2003-05-05 10:17     ` Christoph Hellwig
2003-05-06  1:05       ` Mike Anderson
2003-05-07 15:44         ` Christoph Hellwig
2003-05-07 16:15           ` Mike Anderson
2003-05-07 16:41             ` Christoph Hellwig
2003-05-05 11:46 ` Douglas Gilbert
2003-05-05 21:45   ` Mike Anderson
2003-05-06  1:12     ` Douglas Gilbert
2003-05-06 16:28 ` James Bottomley
2003-05-06 17:23   ` Mike Anderson
2003-05-07 23:19     ` Willem Riede
2003-05-08  0:09       ` Douglas Gilbert
2003-05-08  1:44       ` Mike Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox