Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 24 Mar 2003 16:37:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 24 Mar 2003 16:37:57 -0500 Received: from numenor.qualcomm.com ([129.46.51.58]:48102 "EHLO numenor.qualcomm.com") by vger.kernel.org with ESMTP id ; Mon, 24 Mar 2003 16:37:56 -0500 Message-Id: <5.1.0.14.2.20030324134343.075a00d8@unixmail.qualcomm.com> X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 24 Mar 2003 13:44:22 -0800 To: Greg KH , Kai Germaschewski From: Max Krasnyansky Subject: Re: Sleeping in illegal context with 2.5.65-mm2 Cc: linux-kernel@vger.kernel.org, Alexander Hoogerhuis In-Reply-To: <20030320050537.GA19436@kroah.com> References: <20030320043931.GC18787@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1250 Lines: 37 At 09:05 PM 3/19/2003, Greg KH wrote: >On Wed, Mar 19, 2003 at 11:03:51PM -0600, Kai Germaschewski wrote: >> On Wed, 19 Mar 2003, Greg KH wrote: >> >> > > Debug: sleeping function called from illegal context at mm/slab.c:1723 >> > > Call Trace: >> > > [] __might_sleep+0x5f/0x65 >> > > [] kmalloc+0x88/0x8f >> > > [] usb_alloc_urb+0x21/0x51 >> > > [] hci_usb_enable_intr+0x20/0xf8 [hci_usb] >> > >> > The call to usb_alloc_urb() here is being done with the GFP_ATOMIC flag, >> > which is correct. Do we need to fix up the warning message to prevent >> > false positives like this from happening? >> >> Not in my tree: (drivers/bluetooth/hci_sb.c) >> >> if (!(urb = usb_alloc_urb(0, GFP_KERNEL))) >> return -ENOMEM; > >Doh, nevermind, I was looking at the wrong function, sorry. > >> And the function is called in a write_lock_irqsave(), so the complaint is >> justified. > >Max, you should probably fix this up. Will do. Thanks Max - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/