]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xhci: Use GFP_NOIO during device reset.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 28 Dec 2010 21:08:42 +0000 (13:08 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 22:47:32 +0000 (14:47 -0800)
commit062d29c90bda892a67eecb5e972715e1bd5df9cd
tree4d792956fbd120686eb7478130db21d9b05a4be0
parentcc402387cc7fdb826b193994051dad64cdf6377b
xhci: Use GFP_NOIO during device reset.

commit a6d940dd759bf240d28624198660ed34582a327b upstream.

When xhci_discover_or_reset_device() is called after a host controller
power loss, the virtual device may need to be reallocated.  Make sure
xhci_alloc_dev() uses GFP_NOIO.  This avoid causing a deadlock by allowing
the kernel to flush pending I/O while reallocating memory for a virtual
device for a USB mass storage device that's holding the backing store for
dirty memory buffers.

This patch should be queued for the 2.6.37 stable tree.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci.c