From: Gustavo Padovan <gustavo@padovan.org>
To: Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com>
Cc: linux-bluetooth@vger.kernel.org, mathewm@codeaurora.org
Subject: Re: [PATCH] Bluetooth: A2MP: Do not reference hci_conn
Date: Thu, 31 May 2012 10:26:06 -0300 [thread overview]
Message-ID: <20120531132606.GM18069@joana> (raw)
In-Reply-To: <1338451297-20109-1-git-send-email-Andrei.Emeltchenko.news@gmail.com>
Hi Andrei,
* Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com> [2012-05-31 11:01:37 +0300]:
> From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
>
> Make A2MP channel special channel which do not reference hci_conn.
> This prevents from keeping ACL connection open when all L2CAP
> channels got closed.
>
> hci_conn_hold and hci_conn_put are not reference counts on the
> hci_conn structure in the typical way. They are reference counts for
> the ACL. When you do the last hci_conn_put, the ACL is disconnected
> after a timeout.
>
> Reported-by: Mat Martineau <mathewm@codeaurora.org>
> Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
> ---
> net/bluetooth/a2mp.c | 2 --
> net/bluetooth/l2cap_core.c | 4 +++-
> 2 files changed, 3 insertions(+), 3 deletions(-)
Patch has been applied to bluetooth-next, thanks.
Gustavo
prev parent reply other threads:[~2012-05-31 13:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-31 8:01 [PATCH] Bluetooth: A2MP: Do not reference hci_conn Andrei Emeltchenko
2012-05-31 13:26 ` 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=20120531132606.GM18069@joana \
--to=gustavo@padovan.org \
--cc=Andrei.Emeltchenko.news@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=mathewm@codeaurora.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