Re: [RFC PATCH v2 6/6] USB: forbid memory allocation with I/O during bus reset

2012-10-23 Thread Ming Lei
On Mon, Oct 22, 2012 at 10:37 PM, Alan Stern wrote: > On Mon, 22 Oct 2012, Ming Lei wrote: >> >> + /* >> + * Don't allocate memory with GFP_KERNEL in current >> + * context to avoid possible deadlock if usb mass >> + * storage interface or usbnet interface(iSCSI case) >> +

Re: [RFC PATCH v2 6/6] USB: forbid memory allocation with I/O during bus reset

2012-10-22 Thread Alan Stern
On Mon, 22 Oct 2012, Ming Lei wrote: > If one storage interface or usb network interface(iSCSI case) > exists in current configuration, memory allocation with > GFP_KERNEL during usb_device_reset() might trigger I/O transfer > on the storage interface itself and cause deadlock because > the 'us->d

[RFC PATCH v2 6/6] USB: forbid memory allocation with I/O during bus reset

2012-10-22 Thread Ming Lei
If one storage interface or usb network interface(iSCSI case) exists in current configuration, memory allocation with GFP_KERNEL during usb_device_reset() might trigger I/O transfer on the storage interface itself and cause deadlock because the 'us->dev_mutex' is held in .pre_reset() and the storag