* Oops unplugging USB stick
@ 2004-05-13 16:03 Oliver Neukum
2004-05-13 16:39 ` James Bottomley
0 siblings, 1 reply; 3+ messages in thread
From: Oliver Neukum @ 2004-05-13 16:03 UTC (permalink / raw)
To: usb-storage, linux-scsi; +Cc: USB development list
Hi,
a plugging/unplugging cycle generated this oops.
Linus BK tree of yesterday, uhci.
May 13 16:45:27 macbeth /etc/hotplug/usb.agent[20957]: need a device for this command
May 13 16:45:27 macbeth kernel: Initializing USB Mass Storage driver...
May 13 16:45:27 macbeth kernel: scsi1 : SCSI emulation for USB Mass Storage devices
May 13 16:45:27 macbeth kernel: Vendor: Model: USB DISK Pro Rev: 2.00
May 13 16:45:27 macbeth kernel: Type: Direct-Access ANSI SCSI revision: 02
May 13 16:45:28 macbeth kernel: SCSI device sda: 250880 512-byte hdwr sectors (128 MB)
May 13 16:45:28 macbeth kernel: sda: assuming Write Enabled
May 13 16:45:28 macbeth kernel: sda: assuming drive cache: write through
May 13 16:45:28 macbeth kernel: sda: sda1
May 13 16:45:28 macbeth kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
May 13 16:45:28 macbeth kernel: Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0, type 0
May 13 16:45:28 macbeth /etc/hotplug/scsi_device.agent[21043]: FATAL: Module sg not found.
May 13 16:45:28 macbeth kernel: USB Mass Storage device found at 2
May 13 16:45:28 macbeth kernel: usbcore: registered new driver usb-storage
May 13 16:45:28 macbeth kernel: USB Mass Storage support registered.
May 13 16:45:28 macbeth /etc/hotplug/block.agent[21042]: new block device /block/sda/sda1
May 13 16:45:28 macbeth /etc/hotplug/block.agent[21033]: waiting for /var/lock/block.agent.lock, process 21042 holds it
May 13 16:45:41 macbeth /etc/hotplug/block.agent[21042]: mount by-path/usb-storage-07441418065B:0:0:0p1
May 13 16:45:41 macbeth /etc/hotplug/block.agent[21042]: mount: fs type subfs not supported by kernel
May 13 16:45:41 macbeth /etc/hotplug/block.agent[21033]: new block device /block/sda
May 13 16:47:46 macbeth su: (to root) oliver on /dev/pts/70
May 13 16:47:46 macbeth su: pam_unix2: session started for user root, service su
May 13 16:47:58 macbeth kernel: scsi: Device offlined - not ready after error recovery: host 1 channel 0 id 0 lun 0
May 13 16:48:20 macbeth kernel: usb 1-1: USB disconnect, address 2
May 13 16:48:20 macbeth kernel: sd 1:0:0:0: Illegal state transition offline->cancel
May 13 16:48:20 macbeth kernel: Badness in scsi_device_set_state at drivers/scsi/scsi_lib.c:1640
May 13 16:48:20 macbeth kernel: Call Trace:
May 13 16:48:20 macbeth kernel: [<c0304bda>] scsi_device_set_state+0xea/0x140
May 13 16:48:20 macbeth kernel: [<c02ff408>] scsi_device_cancel+0x28/0xfa
May 13 16:48:20 macbeth kernel: [<c02ff520>] scsi_device_cancel_cb+0x0/0x20
May 13 16:48:20 macbeth kernel: [<c02c312d>] device_for_each_child+0x3d/0x70
May 13 16:48:20 macbeth kernel: [<c02ff57e>] scsi_host_cancel+0x3e/0xd0
May 13 16:48:20 macbeth kernel: [<c02ff520>] scsi_device_cancel_cb+0x0/0x20
May 13 16:48:20 macbeth kernel: [<c0343032>] usb_buffer_free+0x52/0x60
May 13 16:48:20 macbeth kernel: [<c02ff626>] scsi_remove_host+0x16/0x60
May 13 16:48:20 macbeth kernel: [<e1b63dd5>] storage_disconnect+0x35/0x40 [usb_storage]
May 13 16:48:20 macbeth kernel: [<c0341d2a>] usb_unbind_interface+0x6a/0x70
May 13 16:48:20 macbeth kernel: [<c02c4056>] device_release_driver+0x66/0x70
May 13 16:48:20 macbeth /etc/hotplug/usb.agent[21386]: need a device for this command
May 13 16:48:20 macbeth kernel: [<c02c4195>] bus_remove_device+0x55/0xa0
May 13 16:48:20 macbeth kernel: [<c02c3067>] device_del+0x57/0xc0
May 13 16:48:20 macbeth kernel: [<c02c30e0>] device_unregister+0x10/0x20
May 13 16:48:20 macbeth kernel: [<c0347e80>] usb_disable_device+0x90/0xc0
May 13 16:48:20 macbeth kernel: [<c0342962>] usb_disconnect+0xa2/0xf0
May 13 16:48:20 macbeth kernel: [<c03448ef>] hub_port_connect_change+0x8f/0x2d0
May 13 16:48:20 macbeth kernel: [<c0344463>] hub_port_status+0x43/0xb0
May 13 16:48:20 macbeth kernel: [<c0344da3>] hub_events+0x273/0x320
May 13 16:48:20 macbeth kernel: [<c0344ea3>] hub_thread+0x53/0x100
May 13 16:48:20 macbeth kernel: [<c0116ad0>] default_wake_function+0x0/0x20
May 13 16:48:20 macbeth kernel: [<c0344e50>] hub_thread+0x0/0x100
May 13 16:48:20 macbeth kernel: [<c01022ad>] kernel_thread_helper+0x5/0x18
May 13 16:48:20 macbeth kernel:
May 13 16:48:20 macbeth kernel: sd 1:0:0:0: Illegal state transition offline->cancel
May 13 16:48:20 macbeth kernel: Badness in scsi_device_set_state at drivers/scsi/scsi_lib.c:1640
May 13 16:48:20 macbeth kernel: Call Trace:
May 13 16:48:20 macbeth kernel: [<c0304bda>] scsi_device_set_state+0xea/0x140
May 13 16:48:20 macbeth kernel: [<c03071e0>] scsi_remove_device+0x20/0xc0
May 13 16:48:20 macbeth kernel: [<c030653a>] scsi_forget_host+0x2a/0x50
May 13 16:48:20 macbeth kernel: [<c02ff636>] scsi_remove_host+0x26/0x60
May 13 16:48:20 macbeth kernel: [<e1b63dd5>] storage_disconnect+0x35/0x40 [usb_storage]
May 13 16:48:20 macbeth kernel: [<c0341d2a>] usb_unbind_interface+0x6a/0x70
May 13 16:48:20 macbeth kernel: [<c02c4056>] device_release_driver+0x66/0x70
May 13 16:48:20 macbeth kernel: [<c02c4195>] bus_remove_device+0x55/0xa0
May 13 16:48:20 macbeth kernel: [<c02c3067>] device_del+0x57/0xc0
May 13 16:48:20 macbeth kernel: [<c02c30e0>] device_unregister+0x10/0x20
May 13 16:48:20 macbeth kernel: [<c0347e80>] usb_disable_device+0x90/0xc0
May 13 16:48:20 macbeth kernel: [<c0342962>] usb_disconnect+0xa2/0xf0
May 13 16:48:20 macbeth kernel: [<c03448ef>] hub_port_connect_change+0x8f/0x2d0
May 13 16:48:20 macbeth kernel: [<c0344463>] hub_port_status+0x43/0xb0
May 13 16:48:20 macbeth kernel: [<c0344da3>] hub_events+0x273/0x320
May 13 16:48:20 macbeth kernel: [<c0344ea3>] hub_thread+0x53/0x100
May 13 16:48:20 macbeth kernel: [<c0116ad0>] default_wake_function+0x0/0x20
May 13 16:48:20 macbeth kernel: [<c0344e50>] hub_thread+0x0/0x100
May 13 16:48:20 macbeth kernel: [<c01022ad>] kernel_thread_helper+0x5/0x18
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Oops unplugging USB stick
2004-05-13 16:03 Oops unplugging USB stick Oliver Neukum
@ 2004-05-13 16:39 ` James Bottomley
2004-05-13 17:05 ` Oliver Neukum
0 siblings, 1 reply; 3+ messages in thread
From: James Bottomley @ 2004-05-13 16:39 UTC (permalink / raw)
To: Oliver Neukum; +Cc: usb-storage, SCSI Mailing List, USB development list
On Thu, 2004-05-13 at 11:03, Oliver Neukum wrote:
> May 13 16:48:20 macbeth kernel: usb 1-1: USB disconnect, address 2
> May 13 16:48:20 macbeth kernel: sd 1:0:0:0: Illegal state transition offline->cancel
> May 13 16:48:20 macbeth kernel: Badness in scsi_device_set_state at drivers/scsi/scsi_lib.c:1640
> May 13 16:48:20 macbeth kernel: Call Trace:
> May 13 16:48:20 macbeth kernel: [<c0304bda>] scsi_device_set_state+0xea/0x140
[...]
That's not actually an oops, it's just a warning that there's an error
in the state model....the machine proceeded normally after the messages
appeared, didn't it? Actually, this one looks to be a residual of the
fix to a previous problem. Does the attached make the message go away?
James
===== drivers/scsi/scsi_lib.c 1.126 vs edited =====
--- 1.126/drivers/scsi/scsi_lib.c Wed Mar 31 16:32:26 2004
+++ edited/drivers/scsi/scsi_lib.c Thu May 13 11:35:39 2004
@@ -1610,7 +1610,9 @@
case SDEV_CANCEL:
switch (oldstate) {
+ case SDEV_CREATED:
case SDEV_RUNNING:
+ case SDEV_OFFLINE:
break;
default:
goto illegal;
@@ -1619,9 +1621,7 @@
case SDEV_DEL:
switch (oldstate) {
- case SDEV_CREATED:
case SDEV_CANCEL:
- case SDEV_OFFLINE:
break;
default:
goto illegal;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Oops unplugging USB stick
2004-05-13 16:39 ` James Bottomley
@ 2004-05-13 17:05 ` Oliver Neukum
0 siblings, 0 replies; 3+ messages in thread
From: Oliver Neukum @ 2004-05-13 17:05 UTC (permalink / raw)
To: James Bottomley; +Cc: usb-storage, SCSI Mailing List, USB development list
Am Donnerstag, 13. Mai 2004 18:39 schrieb James Bottomley:
> On Thu, 2004-05-13 at 11:03, Oliver Neukum wrote:
> > May 13 16:48:20 macbeth kernel: usb 1-1: USB disconnect, address 2
> > May 13 16:48:20 macbeth kernel: sd 1:0:0:0: Illegal state transition offline->cancel
> > May 13 16:48:20 macbeth kernel: Badness in scsi_device_set_state at drivers/scsi/scsi_lib.c:1640
> > May 13 16:48:20 macbeth kernel: Call Trace:
> > May 13 16:48:20 macbeth kernel: [<c0304bda>] scsi_device_set_state+0xea/0x140
> [...]
>
> That's not actually an oops, it's just a warning that there's an error
> in the state model....the machine proceeded normally after the messages
> appeared, didn't it? Actually, this one looks to be a residual of the
> fix to a previous problem. Does the attached make the message go away?
Your fix is working.
Regards
Oliver
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-13 17:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-13 16:03 Oops unplugging USB stick Oliver Neukum
2004-05-13 16:39 ` James Bottomley
2004-05-13 17:05 ` Oliver Neukum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.