Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: [PATCH v2 5/8] Bluetooth: 6LoWPAN: Use connected oriented channel instead of fixed one From: Marcel Holtmann In-Reply-To: <1401107914.2400.21.camel@jrissane-mobl.ger.corp.intel.com> Date: Mon, 26 May 2014 14:46:37 +0200 Cc: linux-bluetooth@vger.kernel.org Message-Id: References: <1400837248-12179-1-git-send-email-jukka.rissanen@linux.intel.com> <1400837248-12179-6-git-send-email-jukka.rissanen@linux.intel.com> <1401107914.2400.21.camel@jrissane-mobl.ger.corp.intel.com> To: Jukka Rissanen Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Jukka, >>> +static struct sk_buff *bt_6lowpan_chan_alloc_skb_cb(struct l2cap_chan *chan, >>> + unsigned long len, int nb) >>> +{ >>> + return bt_skb_alloc(len, GFP_ATOMIC); >> >> Does this have to be GFP_ATOMIC? >> > > Yep, I see "BUG: sleeping function called from invalid context..." > without it. should we fix the caller? I am curious why this is possible in the first place. The whole Bluetooth subsystem should run in a workqueue these days. Do we have by any chance the wrong lock hold at this point or why is this happening. If we really need to keep GFP_ATOMIC here then you need to add a comment on why that is. Because otherwise we will forget about it next time around. Regards Marcel