From: Marcel Holtmann <marcel@holtmann.org>
To: Dmitri Khokhlov <dkhokhlov@hotmail.com>
Cc: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] racing condition in accepting incoming RFCOMM connection
Date: Thu, 05 Feb 2004 03:26:28 +0100 [thread overview]
Message-ID: <1075947988.2783.119.camel@pegasus> (raw)
In-Reply-To: <BAY8-DAV8lzzOjPtlBB000035dd@hotmail.com>
Hi Dmitri,
> It looks like there is a racing condition in accepting incoming RFCOMM
> connection. It happens to me in 90% cases when a headset originates
> connection to a voice gateway. If RFCOMM SAMB command frame comes in L2CAP
> data packet right after L2CAP Configuration Request packet and there is no
> active RFCOMM sessions yet then the kernel RFCOMM thread wakes up only one
> time and creates new session but does not process SAMB frame from second
> L2CAP data packet waiting in queue. Connection setup hangs. Headset is
> waiting for UA frame response but the kernel RFCOMM thread keeps sleeping.
> The kernel log for bad case is attached. I use the following environment:
> Kernel: Linux 2.4.21 + patch-2.4.21-mh6, PowerPC.
> Headsets: Motorola Model 98405H, BlueTrek-G2.
> Voice gateway: Murata BlueModule, CSR BlueCore: BC02 (Hardware ID 8a)
> firmware version 526
> A possible solution could be to force additional thread wakeup right after
> successful creation of new session in rfcomm_accept_connection(). The patch
> is attached.
sounds reasonable to me. Anyone else noticed this behaviour?
Regards
Marcel
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
prev parent reply other threads:[~2004-02-05 2:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-05 2:03 [Bluez-devel] racing condition in accepting incoming RFCOMM connection Dmitri Khokhlov
2004-02-05 2:26 ` 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=1075947988.2783.119.camel@pegasus \
--to=marcel@holtmann.org \
--cc=bluez-devel@lists.sourceforge.net \
--cc=dkhokhlov@hotmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox