usb: hub: allow to process more usb hub events in parallel
authorPetr Mladek <pmladek@suse.cz>
Fri, 19 Sep 2014 15:32:24 +0000 (17:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 05:33:19 +0000 (22:33 -0700)
commit638139eb95d2d241781330a321e88c8dafe46078
treeccb7df7cabe74a62e0bd707f7700f0e4efb5516e
parent37ebb54915dc42944f6ae92fe53b9531c3903801
usb: hub: allow to process more usb hub events in parallel

It seems that only choose_devnum() was not ready to process more hub
events at the same time.

All should be fine if we take bus->usb_address0_mutex there. It will
make sure that more devnums will not be chosen for the given bus and
the related devices at the same time.

Signed-off-by: Petr Mladek <pmladek@suse.cz>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c