linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 1/3] Bluetooth: Simplify packet copy in hci_send_to_monitor function
Date: Mon, 12 Jan 2015 11:27:14 +0200	[thread overview]
Message-ID: <20150112092714.GC4548@t440s.lan> (raw)
In-Reply-To: <1421033613-31738-1-git-send-email-marcel@holtmann.org>

Hi Marcel,

On Sun, Jan 11, 2015, Marcel Holtmann wrote:
> Within the monitor functionality, the global atomic variable called
> monitor_promisc ensures that no memory allocation happend when there
> is actually no client listening. This means it is safe to just create
> a copy of the skb since it is guaranteed that at least one client
> exists. No extra checks needed.
> 
> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
> ---
>  net/bluetooth/hci_sock.c | 28 ++++++++++++----------------
>  1 file changed, 12 insertions(+), 16 deletions(-)

All three patches in this set have been applied to bluetooth-next.
Thanks.

Johan

      reply	other threads:[~2015-01-12  9:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-12  3:33 [PATCH 1/3] Bluetooth: Simplify packet copy in hci_send_to_monitor function Marcel Holtmann
2015-01-12  9:27 ` Johan Hedberg [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=20150112092714.GC4548@t440s.lan \
    --to=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.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).