linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: johan.hedberg@gmail.com
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 1/3] Bluetooth: Pass full hci_dev struct to mgmt callbacks
Date: Wed, 09 Nov 2011 16:34:22 +0900	[thread overview]
Message-ID: <1320824067.15441.315.camel@aeonflux> (raw)
In-Reply-To: <1320777616-15794-1-git-send-email-johan.hedberg@gmail.com>

Hi Johan,

> The current global pending command list in mgmt.c is racy. Possibly the
> simplest way to fix it is to have per-hci dev lists instead of a global
> one (all commands that need a pending struct are hci_dev specific).
> This way the list can be protected using the already existing per-hci
> dev lock. To enable this refactoring the first thing that needs to be
> done is to ensure that the mgmt functions have access to the hci_dev
> struct (instead of just the dev id).
> 
> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
> ---
>  include/net/bluetooth/hci_core.h |   61 ++++++-----
>  net/bluetooth/hci_core.c         |   16 ++--
>  net/bluetooth/hci_event.c        |   63 ++++++------
>  net/bluetooth/mgmt.c             |  206 +++++++++++++++++++------------------
>  4 files changed, 178 insertions(+), 168 deletions(-)

makes sense to me.

Acked-by: Marcel Holtmann <marcel@holtmann.org>

Regards

Marcel



      parent reply	other threads:[~2011-11-09  7:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-08 18:40 [PATCH 1/3] Bluetooth: Pass full hci_dev struct to mgmt callbacks johan.hedberg
2011-11-08 18:40 ` [PATCH 2/3] Bluetooth: Move pending management command list into struct hci_dev johan.hedberg
2011-11-09  7:35   ` Marcel Holtmann
2011-11-08 18:40 ` [PATCH 3/3] Bluetooth: Add missing hci_dev locking when calling mgmt functions johan.hedberg
2011-11-08 21:30   ` Andrei Emeltchenko
2011-11-08 22:26     ` Johan Hedberg
2011-11-09  7:36   ` Marcel Holtmann
2011-11-09 14:34   ` Gustavo Padovan
2011-11-09  7:34 ` Marcel Holtmann [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=1320824067.15441.315.camel@aeonflux \
    --to=marcel@holtmann.org \
    --cc=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).