Bug 810794

Summary: Usb disk changed from '/dev/sdb' to '/dev/sdc' when wake up from hibernate.
Product: [Fedora] Fedora Reporter: Chao Yang <chyang>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: davidz, gansalmon, itamar, jforbes, jonathan, kernel-maint, madhu.chinakonda, mclasen, qcai
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: first=3.3.0 suspend hibernate USB
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-07 16:38:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Chao Yang 2012-04-09 08:02:16 UTC
Description of problem:
Usb disk changed from '/dev/sdb' to '/dev/sdc' when wake up from hibernate.

Version-Release number of selected component (if applicable):
# uname -r
3.3.0-1.fc17.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Fedora Test Day case:
https://fedoraproject.org/wiki/QA:Testcase_USB_Power_Management_Hibernate
  
Actual results:
The usb disk device has been changed.

Expected results:
All USB devices should remain working fine. 

Additional info:
[ 2186.525215] sd 8:0:0:0: [sdb] Unhandled error code
[ 2186.525223] sd 8:0:0:0: [sdb]  Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 2186.525233] sd 8:0:0:0: [sdb] CDB: Write(10): 2a 00 00 00 01 00 00 00 01 00
[ 2186.525251] end_request: I/O error, dev sdb, sector 2048
[ 2186.525366] Buffer I/O error on device sdb1, logical block 0
[ 2186.525475] lost page write due to I/O error on sdb1
[ 2186.525517] Restarting tasks ... 
[ 2186.525807] usb 11-1: USB disconnect, device number 4
[ 2186.527940] done.
[ 2186.528035] PM: Basic memory bitmaps freed
[ 2186.673682] xhci_hcd 0000:03:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88020e444e80
[ 2186.673694] xhci_hcd 0000:03:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88020e444ec0
[ 2186.776390] usb 11-1: new SuperSpeed USB device number 5 using xhci_hcd
[ 2186.788591] usb 11-1: New USB device found, idVendor=0bc2, idProduct=50a1
[ 2186.788602] usb 11-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 2186.788613] usb 11-1: Product: FA GoFlex Desk
[ 2186.788619] usb 11-1: Manufacturer: Seagate
[ 2186.788624] usb 11-1: SerialNumber: NA0JRATK
[ 2186.790691] scsi9 : usb-storage 11-1:1.0
[ 2187.628113] r8169 0000:05:00.0: p32p1: link up
[ 2187.793928] scsi 9:0:0:0: Direct-Access     Seagate  FA GoFlex Desk   0D0B PQ: 0 ANSI: 0
[ 2187.796273] sd 9:0:0:0: Attached scsi generic sg2 type 0
[ 2187.796393] sd 9:0:0:0: [sdc] 732566645 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[ 2187.796822] sd 9:0:0:0: [sdc] Write Protect is off
[ 2187.796833] sd 9:0:0:0: [sdc] Mode Sense: 0f 00 00 00
[ 2187.797202] sd 9:0:0:0: [sdc] No Caching mode page present
[ 2187.797209] sd 9:0:0:0: [sdc] Assuming drive cache: write through
[ 2187.798072] sd 9:0:0:0: [sdc] 732566645 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[ 2187.798862] sd 9:0:0:0: [sdc] No Caching mode page present
[ 2187.798871] sd 9:0:0:0: [sdc] Assuming drive cache: write through
[ 2190.980255]  sdc: sdc1
[ 2190.981600] sd 9:0:0:0: [sdc] 732566645 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[ 2190.982355] sd 9:0:0:0: [sdc] No Caching mode page present
[ 2190.982365] sd 9:0:0:0: [sdc] Assuming drive cache: write through
[ 2190.982373] sd 9:0:0:0: [sdc] Attached SCSI disk

Comment 1 Matthias Clasen 2012-04-09 12:44:27 UTC
udisks is not involved in deciding device names

Comment 2 Josh Boyer 2012-04-09 14:29:19 UTC
Does the USB device stop working entirely after it reprobes?  It seems the suspend/resume caused it to get an error, which is not entirely unexpected, but then it reprobed fine and shows up again.