Hi... Christoph Hellwig wrote: > What really seems to miss in your model is a callback to i2o_scsi > from the main i2o code when a new i2o_controller is found, if you > implemented > that we'd allocate/deallocate the Scsi_Host in that callback and > ->probe/->remove could be sure it'd always have it. > i2o_scsi_get_host would get inlined into i2o_scsi_probe. > i2o_scsi_remove basically needs a full rewrite, you need to find a way > to store a scsi_device ini i2o_dev and it becomes completely trivial. > Not sure about how to sanitize the scsi_devie probing logic > in i2o_scsi_probe yet. Okay, patch i2o_scsi-cleanup.patch adds a notification facility to the i2o_driver, which notify if a controller is added or removed. The i2o_controller structure has now the ability to store per-driver data and the SCSI-OSM now takes advantage of this. So all ugly parts should be removed now :-) If you have further things which should be changed, please let me know... Best regards, Markus Lidel ------------------------------------------ Markus Lidel (Senior IT Consultant) Shadow Connect GmbH Carl-Reisch-Weg 12 D-86381 Krumbach Germany Phone: +49 82 82/99 51-0 Fax: +49 82 82/99 51-11 E-Mail: Markus.Lidel@shadowconnect.com URL: http://www.shadowconnect.com