USB: uas: Use GFP_NOIO instead of GFP_KERNEL in I/O submission path
authorMatthew Wilcox <matthew@wil.cx>
Wed, 15 Dec 2010 20:44:06 +0000 (15:44 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 15 Dec 2010 23:26:44 +0000 (15:26 -0800)
commit0b83ae960cd7d4a5ee02786ecf41ab45688999bf
tree656114c334d106dc831fae37b7348f7ea00d53f8
parent89dc29051b626756e69db12f3ffb22e49a817bfe
USB: uas: Use GFP_NOIO instead of GFP_KERNEL in I/O submission path

If swap is on a UAS device, we could recurse into the driver by using
GFP_KERNEL.  Using GFP_NOIO ensures we won't.

Reported-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/uas.c