kernel_optimize_test/drivers/usb/mon
Arjan van de Ven bb4e3b5ac8 usbmon: fix tiny race exposed by the fastboot patches
usbmon registers the notifier chain, takes the bus lock and then goes to
scan the existing devices for hooking up.

Unfortunately, if usb_mon gets initialized while USB bus discovery is
going on, it's possible that usbmon gets a notifier on one cpu (which runs
without USB locks), and the scan is going on and also finds the new bus,
resulting in a double sysfs registration, which then produces a WARNING.

Pete Zaitcev did the bug diagnostics on this one

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Acked-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-10-17 14:40:57 -07:00
..
Kconfig [PATCH] USB: ub documentation update 2005-08-04 21:32:46 -07:00
Makefile USB: Fix "cut and paste" booboo in usbmon Makefile. 2008-04-24 21:16:43 -07:00
mon_bin.c device create: usb: convert device_create_drvdata to device_create 2008-10-16 09:24:45 -07:00
mon_dma.c USB: add binary API to usbmon 2007-02-07 15:44:34 -08:00
mon_main.c usbmon: fix tiny race exposed by the fastboot patches 2008-10-17 14:40:57 -07:00
mon_stat.c USB: usbmon: use simple_read_from_buffer() 2008-07-21 15:16:31 -07:00
mon_text.c SL*B: drop kmem cache argument from constructor 2008-07-26 12:00:07 -07:00
usb_mon.h USB: reorganize urb->status use in usbmon 2007-10-12 14:55:23 -07:00