On Sat, Sep 6, 2014 at 1:45 AM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote: > James and Jens: > > I got a WARNING when unbinding the sd driver from a USB flash drive and > then binding it back again. Here's where the flash drive gets probed > initially: > > [ 143.300886] usb-storage 4-8:1.0: usb_probe_interface > [ 143.300911] usb-storage 4-8:1.0: usb_probe_interface - got id > [ 143.300930] usb-storage 4-8:1.0: USB Mass Storage device detected > [ 143.318239] scsi host0: usb-storage 4-8:1.0 > [ 143.359979] scsi 0:0:0:0: Direct-Access Ut165 USB2FlashStorage 0.00 PQ: 0 ANSI: 2 > [ 143.376366] usbcore: registered new interface driver usb-storage > [ 143.468464] sd 0:0:0:0: [sda] 7892040 512-byte logical blocks: (4.04 GB/3.76 GiB) > [ 143.481725] sd 0:0:0:0: [sda] Write Protect is off > [ 143.485712] sd 0:0:0:0: [sda] Mode Sense: 00 00 00 00 > [ 143.487064] sd 0:0:0:0: [sda] Asking for cache data failed > [ 143.498428] sd 0:0:0:0: [sda] Assuming drive cache: write through > [ 143.656797] sda: sda1 > [ 143.676922] sd 0:0:0:0: [sda] Attached SCSI removable disk > > Then I did > > echo 0:0:0:0 >/sys/bus/scsi/drivers/sd_mod/unbind > > followed by > > echo 0:0:0:0 >/sys/bus/scsi/drivers/sd_mod/bind I can reproduce it on virtio-blk too with scsi-mq, and can't duplicate it on non-scsi devices, so looks there are refcounts leak in scsi subsystem? Thanks, -- Ming Lei -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html