]> git.baikalelectronics.ru Git - kernel.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)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Fri, 14 Jan 2011 23:51:51 +0000 (15:51 -0800)
commit5294ec209854f187a2e09669b056847e1e6ef20e
tree4a6ce6ef72bb872a9f0a94933b3d6f749b58538e
parent479b74da908131a075e3d67e2fffa0ce25bb0a3c
xhci: Use GFP_NOIO during device reset.

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>
Cc: stable@kernel.org
drivers/usb/host/xhci.c