On Sat, 4 Oct 2003, Smurf wrote:

> The relevant part of the log is:
> 
> Oct  4 11:16:44 linux kernel: usb-storage: -- dissociate_dev
> Oct  4 11:16:44 linux kernel: CLASS: Unregistering class device. ID = '0:0:0:0'
> Oct  4 11:16:44 linux kernel: kset_hotplug
> Oct  4 11:16:44 linux kernel: fill_kobj_path: path = '/class/scsi_device/0:0:0:0'
> Oct  4 11:16:44 linux kernel: class_hotplug - name = 0:0:0:0
> Oct  4 11:16:44 linux kernel: kset_hotplug: /tmp/foo scsi_device HOME=/ 
> PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove SEQNUM=144
> Oct  4 11:16:44 linux kernel: kset_hotplug - call_usermodehelper returned -1
> Oct  4 11:16:44 linux kernel: kobject 0:0:0:0: cleaning up
> Oct  4 11:16:44 linux kernel: device class '0:0:0:0': release.
> Oct  4 11:16:44 linux kernel: kobject <NULL>: cleaning up
> Oct  4 11:16:44 linux kernel: CLASS: Unregistering class device. ID = 'host0'
> Oct  4 11:16:44 linux kernel: kset_hotplug
> Oct  4 11:16:44 linux kernel: fill_kobj_path: path = '/class/scsi_host/host0'
> Oct  4 11:16:44 linux kernel: class_hotplug - name = host0
> Oct  4 11:16:44 linux kernel: kset_hotplug: /tmp/foo scsi_host HOME=/ 
> PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove SEQNUM=145
> Oct  4 11:16:44 linux kernel: kset_hotplug - call_usermodehelper returned -1
> Oct  4 11:16:44 linux kernel: kobject host0: cleaning up
> Oct  4 11:16:44 linux kernel: device class 'host0': release.
> Oct  4 11:16:44 linux kernel: usb-storage: -- sending exit command to thread
> 
> Unfortunately I don't know my way around the 2.6 device code yet,
> but, well, no time like the present to learn.  :-/

For comparison, here is the corresponding log I got when I unplugged a USB
CD-RW device, minus several lengthy and uninformative stack dumps
following the "Badness" lines -- did you enable debugging in
lib/kobject.c?

It looks like there are a number of messages present in mine and missing
in yours.  Tracking them down may provide you with some valuable clues.  A 
good place to start looking is in drivers/scsi/scsi_sysfs.c.

Oct  4 11:31:16 patience kernel: usb-storage: -- dissociate_dev
Oct  4 11:31:16 patience kernel: CLASS: Unregistering class device. ID = '0:0:0:0'
Oct  4 11:31:16 patience kernel: kset_hotplug
Oct  4 11:31:16 patience kernel: fill_kobj_path: path = '/class/scsi_device/0:0:0:0'
Oct  4 11:31:16 patience kernel: class_hotplug - name = 0:0:0:0
Oct  4 11:31:16 patience kernel: kset_hotplug: /bin/true scsi_device HOME=/ 
PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove SEQNUM=152 
DEVPATH=/class/scsi_device/0:0:0:0
Oct  4 11:31:16 patience kernel: kobject 0:0:0:0: cleaning up
Oct  4 11:31:16 patience kernel: device class '0:0:0:0': release.
Oct  4 11:31:16 patience kernel: kobject <NULL>: cleaning up

Oct  4 11:31:16 patience kernel: kobject 'class_obj' does not have a release() 
function, it is broken and must be fixed.
Oct  4 11:31:16 patience kernel: Badness in kobject_cleanup at lib/kobject.c:459
Oct  4 11:31:17 patience kernel: bus scsi: remove device 0:0:0:0
Oct  4 11:31:17 patience kernel: kobject iosched: unregistering
Oct  4 11:31:17 patience kernel: kobject iosched: cleaning up
Oct  4 11:31:17 patience kernel: kobject 'iosched' does not have a release() function, 
it is broken and must be fixed.
Oct  4 11:31:17 patience kernel: Badness in kobject_cleanup at lib/kobject.c:459
Oct  4 11:31:17 patience kernel: kobject queue: unregistering
Oct  4 11:31:17 patience kernel: kobject queue: cleaning up
Oct  4 11:31:17 patience kernel: kobject 'queue' does not have a release() function, 
it is broken and must be fixed.
Oct  4 11:31:17 patience kernel: Badness in kobject_cleanup at lib/kobject.c:459
Oct  4 11:31:18 patience kernel: kset_hotplug
Oct  4 11:31:18 patience kernel: fill_kobj_path: path = '/block/sr0'
Oct  4 11:31:18 patience kernel: kset_hotplug: /bin/true block HOME=/ 
PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove SEQNUM=153 DEVPATH=/block/sr0
Oct  4 11:31:18 patience kernel: kobject sr0: cleaning up
Oct  4 11:31:18 patience kernel: kset_hotplug
Oct  4 11:31:18 patience kernel: fill_kobj_path: path = 
'/devices/pci0000:00/0000:00:02.3/usb2/2-1/2-1:2.0/host0/0:0:0:0'
Oct  4 11:31:18 patience kernel: kset_hotplug: /bin/true scsi HOME=/ 
PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove SEQNUM=154 
DEVPATH=/devices/pci0000:00/0000:00:02.3/usb2/2-1/2-1:2.0/host0/0:0:0:0
Oct  4 11:31:18 patience kernel: kobject 0:0:0:0: cleaning up

Oct  4 11:31:18 patience kernel: CLASS: Unregistering class device. ID = 'host0'
Oct  4 11:31:18 patience kernel: kset_hotplug
Oct  4 11:31:18 patience kernel: fill_kobj_path: path = '/class/scsi_host/host0'
Oct  4 11:31:18 patience kernel: class_hotplug - name = host0
Oct  4 11:31:18 patience kernel: kset_hotplug: /bin/true scsi_host HOME=/ 
PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove SEQNUM=155 
DEVPATH=/class/scsi_host/host0
Oct  4 11:31:18 patience kernel: kobject host0: cleaning up
Oct  4 11:31:18 patience kernel: device class 'host0': release.
Oct  4 11:31:18 patience kernel: kobject host0: cleaning up
Oct  4 11:31:18 patience kernel: usb-storage: -- sending exit command to thread

Alan Stern



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to