Kernel trace when remove usb storage without umount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



system kernel is 3.13.6, the origin issue is mount usb storage(3.0) on
usb3.0 port not smooth, i found the solve method is revert xhci.c
patch, here is the link :
https://lkml.org/lkml/2014/3/7/295


After i revert the patch, mount usb storage is fine.
But it takes some issue, here is test case :

Here is test case :
usb storage 2.0 remove from usb 3.0 port => kernel trace
usb storage 2.0 remove from usb 2.0 port => kernel trace
usb storage 3.0 remove from usb 3.0 port => kernel trace

Kernel trace message:

[224189.786719] usb 2-1: USB disconnect, device number 4
[224189.820934] ------------[ cut here ]------------
[224189.820949] WARNING: CPU: 3 PID: 14554 at fs/sysfs/group.c:214
sysfs_remove_group+0x37/0x69()
[224189.820953] sysfs group c1851c34 not found for kobject 'target7:0:0'
[224189.820956] Modules linked in: snd_hda_intel(F)
snd_hda_codec_via(F) snd_hda_codec(F) snd_hwdep(F) snd_pcm_oss(F)
snd_mixer_oss(F) snd_pcm(F) snd_seq_dummy(F) snd_page_alloc(F)
snd_seq_oss(F) snd_seq_midi_event(F) snd_seq(F) snd_timer(F)
snd_seq_device(F) snd(F) parport_pc(F) fan(F) ppdev(F) lp(F)
parport(F)
[224189.820985] CPU: 3 PID: 14554 Comm: umount Tainted: GF       W    3.13.6 #1
[224189.820988] Hardware name: LG CNS t180/t180, BIOS 1.11 03/21/2014
[224189.820991]  00000000 00000000 da877d98 c154fb31 c175e60a da877db0
c102e9f5 c112446b
[224189.821001]  00000000 c1851c34 ea14f21c da877dc8 c102ea70 00000009
da877dc0 c175e60a
[224189.821010]  da877ddc da877df0 c112446b c175e5bf 000000d6 c175e60a
c1851c34 ea28e0e0
[224189.821019] Call Trace:
[224189.821028]  [<c154fb31>] dump_stack+0x41/0x52
[224189.821036]  [<c102e9f5>] warn_slowpath_common+0x61/0x78
[224189.821042]  [<c112446b>] ? sysfs_remove_group+0x37/0x69
[224189.821047]  [<c102ea70>] warn_slowpath_fmt+0x26/0x2a
[224189.821053]  [<c112446b>] sysfs_remove_group+0x37/0x69
[224189.821060]  [<c133a8bd>] dpm_sysfs_remove+0x2d/0x30
[224189.821065]  [<c1334b1c>] device_del+0x2c/0x130
[224189.821072]  [<c134ae09>] scsi_target_reap_usercontext+0x1f/0x2a
[224189.821078]  [<c103f04a>] execute_in_process_context+0x16/0x45
[224189.821083]  [<c134b714>] scsi_target_reap+0x81/0x87
[224189.821090]  [<c134cd52>] scsi_device_dev_release_usercontext+0x116/0x13b
[224189.821095]  [<c103f04a>] execute_in_process_context+0x16/0x45
[224189.821101]  [<c134c9ea>] scsi_device_dev_release+0x13/0x15
[224189.821107]  [<c13342d5>] device_release+0x46/0x78
[224189.821114]  [<c1232827>] kobject_cleanup+0x3e/0x4e
[224189.821120]  [<c123275c>] kobject_put+0x3c/0x3e
[224189.821125]  [<c1232832>] ? kobject_cleanup+0x49/0x4e
[224189.821131]  [<c1334173>] put_device+0xf/0x11
[224189.821137]  [<c13443cc>] scsi_device_put+0x2f/0x33
[224189.821143]  [<c135102e>] scsi_disk_put+0x23/0x31
[224189.821148]  [<c13524f5>] sd_release+0x40/0x44
[224189.821154]  [<c11042ba>] __blkdev_put+0x83/0xfa
[224189.821159]  [<c1104329>] __blkdev_put+0xf2/0xfa
[224189.821164]  [<c1104409>] blkdev_put+0xd8/0xde
[224189.821170]  [<c10e0d1f>] kill_block_super+0x54/0x58
[224189.821177]  [<c10e0422>] deactivate_locked_super+0x24/0x41
[224189.821182]  [<c10e0d7d>] deactivate_super+0x28/0x2b
[224189.821188]  [<c10f3016>] mntput_no_expire+0xc7/0xe3
[224189.821194]  [<c10f3d0d>] SYSC_umount+0x293/0x2b0
[224189.821200]  [<c10f3d38>] SyS_umount+0xe/0x10
[224189.821206]  [<c155a1fa>] sysenter_do_call+0x12/0x22
[224189.821210] ---[ end trace 096ea20d8206361e ]--

Another issue :
usb storage 3.0 remove from usb 2.0 port => I/O error, device node
/dev/sda1 not created.

kernel message :
[  494.932012] usb 1-2: new high-speed USB device number 15 using xhci_hcd
[  494.949878] usb 1-2: New USB device found, idVendor=0781, idProduct=5580
[  494.949904] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  494.949921] usb 1-2: Product: Extreme
[  494.949936] usb 1-2: Manufacturer: SanDisk
[  494.949951] usb 1-2: SerialNumber: AA011102120418337893
[  494.952471] usb 1-2: ep 0x81 - rounding interval to 16 microframes,
ep desc says 20 microframes
[  494.952500] usb 1-2: ep 0x2 - rounding interval to 16 microframes,
ep desc says 20 microframes
[  494.954849] usb-storage 1-2:1.0: USB Mass Storage device detected
[  494.955710] scsi11 : usb-storage 1-2:1.0
[  495.958923] scsi 11:0:0:0: Direct-Access     SanDisk  Extreme
   0001 PQ: 0 ANSI: 6
[  495.962302] sd 11:0:0:0: [sda] 31277232 512-byte logical blocks:
(16.0 GB/14.9 GiB)
[  495.962699] sd 11:0:0:0: [sda] Write Protect is off
[  495.962710] sd 11:0:0:0: [sda] Mode Sense: 53 00 00 08
[  495.963003] sd 11:0:0:0: [sda] Write cache: disabled, read cache:
enabled, doesn't support DPO or FUA
[  518.939977] usb 1-2: USB disconnect, device number 15
[  518.946177] sd 11:0:0:0: [sda] Unhandled error code
[  518.946183] sd 11:0:0:0: [sda]
[  518.946187] Result: hostbyte=0x01 driverbyte=0x00
[  518.946191] sd 11:0:0:0: [sda] CDB:
[  518.946194] cdb[0]=0x28: 28 00 00 00 00 00 00 00 08 00
[  518.946206] end_request: I/O error, dev sda, sector 0
[  518.946211] quiet_error: 122 callbacks suppressed
[  518.946214] Buffer I/O error on device sda, logical block 0
[  518.946274] ldm_validate_partition_table(): Disk read failed.
[  518.946288]  sda: unable to read partition table
[  518.947187] sd 11:0:0:0: [sda] Attached SCSI removable disk

Thanks
--
Chris Cheng  鄭宇廷
Atrust Computer Corp.  冠信電腦股份有限公司
http://www.atrustcorp.com
Tel: +886-3-3288837 ext.1074
3F., No.361, Fusing 1st Rd., Gueishan Township, Taoyuan County 333, Taiwan
333 桃園縣龜山鄉復興一路361號3F
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux