diff options
| author | Arjan van de Ven <[email protected]> | 2008-09-22 15:00:10 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2008-10-17 14:40:57 -0700 |
| commit | bb4e3b5ac81a9601775e62649038934acafa78e2 (patch) | |
| tree | b90fbcb954eb71bae7f9344c9668bb9f0e5f189a /tools/perf/scripts/python | |
| parent | 8520f38099ccfdac2147a0852f84ee7a8ee5e197 (diff) | |
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 <[email protected]>
Acked-by: Pete Zaitcev <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions