USB: update spinlock usage for root-hub URBs
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 2 Aug 2007 19:05:45 +0000 (15:05 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:55:01 +0000 (14:55 -0700)
commit9439eb94b5c374d5b02699f8897fc43aa3603701
tree87e4629b1c9e0f14da4562cd1cb38a809777c311
parentd617bc83ff48ebf0df253605529d8b3bef15773a
USB: update spinlock usage for root-hub URBs

This patch (as952) adjusts the spinlock usage in the root-hub
emulation part of usbcore, to make it match more closely the pattern
used by regular host controller drivers.  To wit: The private lock
(usb_hcd_root_hub_lock) is held throughout the important parts, and it
is dropped temporarily without re-enabling interrupts around the call
to usb_hcd_giveback_urb().

A nice side effect is that the code now avoids calling
local_irq_save(), thereby becoming more RT-friendly.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hcd.c