ok, thank you, I will check it and merge it to my kernel On Wed, Mar 30, 2011 at 2:13 PM, Maulik Mankad <mankad.maulik@xxxxxxxxx> wrote: > On Wed, Mar 30, 2011 at 10:32 AM, sword li <sword.l.dragon@xxxxxxxxx> wrote: >> Hi, All >> when I write data to USB general serial, sometimes encounter the problem >> "scheduling while atomic" problem, and it is very similar with this: >> >> http://kerneltrap.org/mailarchive/linux-usb/2010/4/6/6259986 >> >> and I also find there is a patch: >> http://marc.info/?l=linux-usb&m=126405382220848&w=2 >> >> my kernel is 2.6.32. now with kernel 2.6.38, I find this patch wasn't applied. >> so , is the problem resolved? can anyone give me an advice? >> > > Please note that below patch was merged in the kernel to fix this warning. > > commit 44a0c0190b500ee6bcfc0976fe540f65dee2cd67 > Author: Jon Povey <jon.povey@xxxxxxxxxxxxxxx> > Date: Mon Jun 14 19:41:04 2010 +0900 > > USB: g_serial: don't set low_latency flag > > No longer set low_latency flag as it causes this warning backtrace: > > WARNING: at kernel/mutex.c:207 __mutex_lock_slowpath+0x6c/0x288() > > Fix associated locking and wakeups. > > Signed-off-by: Jon Povey <jon.povey@xxxxxxxxxxxxxxx> > Cc: Maulik Mankad <x0082077@xxxxxx> > Cc: stable <stable@xxxxxxxxxx> > Acked-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx> > Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx> > > You can see "git log" of drivers/usb/gadget/u_serial.c for latest > kernel to confirm this. > > Regards, > Maulik > -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html