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

Bug#309918: kernel-image-2.4.27-2-686: Connecting an USB multi card reader increments sg device numbers



Package: kernel-image-2.4.27-2-686
Version: 2.4.27-8
Severity: normal



-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages kernel-image-2.4.27-2-686 depends on:
ii  coreutils [fileutils]         5.2.1-2    The GNU core utilities
ii  fileutils                     5.2.1-2    The GNU file management utilities 
ii  initrd-tools                  0.1.79     tools to create initrd image for p
ii  modutils                      2.4.26-1.2 Linux module utilities

-- no debconf information

When the USB multi card reader is connected for the first time, it works
as expected and four generic SCSI devices are created and mapped to SCSI
disk devices (/dev/sg[2345] to /dev/sd[abcd]).
But each time the multi card reader is disconnected and reconnected four
additional generic SCSCI devies are created and mapped to SCSI disk devices
(/dev/sg[6789] to /dev/sd[efgh] and so on).
Kernel processes are also left when the USB card reader is disconnected:

 1097 ?        S      0:00 [usb-storage-1]
 1098 ?        S      0:00 [scsi_eh_2]
 1339 ?        S      0:00 [usb-storage-2]
 1340 ?        S      0:00 [scsi_eh_3]
 1400 ?        S      0:00 [usb-storage-3]
 1401 ?        S      0:00 [scsi_eh_4]
 1577 ?        S      0:00 [usb-storage-4]
 1578 ?        S      0:00 [scsi_eh_5]

A disconnect event is generated correctly when the reader is
disconnected:

May 20 15:16:40 Clever kernel: usb.c: USB disconnect on device 00:07.2-2
address 9

When no more generic SCSI devices are available, the USB reader becomes unusable and the system has to be rebooted:

Clever:/home/gerald# sg_scan -i
/dev/sg0: scsi0 channel=0 id=5 lun=0
    PLEXTOR   CD-R   PX-W1210S  1.04 [rmb=1 cmdq=0 pqual=0 pdev=0x5] 
/dev/sg1: scsi0 channel=0 id=6 lun=0
    TOSHIBA   DVD-ROM SD-M1401  1007 [rmb=1 cmdq=0 pqual=0 pdev=0x5] 
/dev/sg2: scsi1 channel=0 id=0 lun=0 [em]
         [rmb=1 cmdq=0 pqual=1 pdev=0x0] 
/dev/sg3: scsi1 channel=0 id=0 lun=1 [em]
         [rmb=1 cmdq=0 pqual=1 pdev=0x0] 
/dev/sg4: scsi1 channel=0 id=0 lun=2 [em]
         [rmb=1 cmdq=0 pqual=1 pdev=0x0] 
/dev/sg5: scsi1 channel=0 id=0 lun=3 [em]
         [rmb=1 cmdq=0 pqual=1 pdev=0x0] 
/dev/sg6: scsi2 channel=0 id=0 lun=0 [em]
         [rmb=1 cmdq=0 pqual=1 pdev=0x0] 
/dev/sg7: scsi3 channel=0 id=0 lun=0 [em]
         [rmb=1 cmdq=0 pqual=1 pdev=0x0] 
/dev/sg8: scsi3 channel=0 id=0 lun=1 [em]
         [rmb=1 cmdq=0 pqual=1 pdev=0x0] 
/dev/sg9: scsi3 channel=0 id=0 lun=2 [em]
         [rmb=1 cmdq=0 pqual=1 pdev=0x0] 
/dev/sg10: scsi3 channel=0 id=0 lun=3 [em]
         [rmb=1 cmdq=0 pqual=1 pdev=0x0] 
/dev/sg11: scsi4 channel=0 id=0 lun=0 [em]
         [rmb=1 cmdq=0 pqual=1 pdev=0x0] 
/dev/sg12: scsi4 channel=0 id=0 lun=1 [em]
         [rmb=1 cmdq=0 pqual=1 pdev=0x0] 
/dev/sg13: scsi4 channel=0 id=0 lun=2 [em]
         [rmb=1 cmdq=0 pqual=1 pdev=0x0] 
/dev/sg14: scsi4 channel=0 id=0 lun=3 [em]
         [rmb=1 cmdq=0 pqual=1 pdev=0x0] 
/dev/sg15: scsi5 channel=0 id=0 lun=0 [em]
    Generic   USB Storage-SMC   0180 [rmb=1 cmdq=0 pqual=0 pdev=0x0] 
/dev/sg16: scsi5 channel=0 id=0 lun=1 [em]
    Generic   USB Storage-CFC   0180 [rmb=1 cmdq=0 pqual=0 pdev=0x0] 
Clever:/home/gerald# sg_map
/dev/sg0  /dev/scd0
/dev/sg1  /dev/scd1
/dev/sg2  /dev/sda
/dev/sg3  /dev/sdb
/dev/sg4  /dev/sdc
/dev/sg5  /dev/sdd
/dev/sg6  /dev/sde
/dev/sg7  /dev/sdf
/dev/sg8  /dev/sdg
/dev/sg9  /dev/sdh
/dev/sg10
/dev/sg11
/dev/sg12
/dev/sg13
/dev/sg14
/dev/sg15
/dev/sg16



Reply to: