All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gustavo Padovan <gustavo@padovan.org>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: szymon.janc@tieto.com, linux-bluetooth@vger.kernel.org
Subject: Re: Bluetooth: Use GFP_KERNEL in read_index_list
Date: Tue, 4 Sep 2012 15:52:11 -0300	[thread overview]
Message-ID: <20120904185151.GA2344@joana> (raw)
In-Reply-To: <20120904162137.GA11841@elgon.mountain>

Hi Dan,

* Dan Carpenter <dan.carpenter@oracle.com> [2012-09-04 19:21:37 +0300]:

> Hello Szymon Janc,
> 
> The patch 7cfeb868eb85: "Bluetooth: Use GFP_KERNEL in
> read_index_list" from Aug 31, 2012, leads to the following warning:
> net/bluetooth/mgmt.c:343 read_index_list()
> 	 error: scheduling with locks held:  'read_lock:hci_dev_list_lock'
> 
> This patch should be reverted because we're not allowed to schedule
> while holding the read lock.  The way to avoid these bugs in the future
> is to test with CONFIG_DEBUG_ATOMIC_SLEEP=y.  It will give a big splat.

I reverted this patch earlier this morning. It should be ok now.

	Gustavo

      reply	other threads:[~2012-09-04 18:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-04 16:21 Bluetooth: Use GFP_KERNEL in read_index_list Dan Carpenter
2012-09-04 18:52 ` Gustavo Padovan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120904185151.GA2344@joana \
    --to=gustavo@padovan.org \
    --cc=dan.carpenter@oracle.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=szymon.janc@tieto.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.