Linux bluetooth development
 help / color / mirror / Atom feed
From: Mat Martineau <mathewm@codeaurora.org>
To: Johan Hedberg <johan.hedberg@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 0/4] Bluetooth: Fix workqueue related issues
Date: Tue, 15 Jan 2013 16:36:00 -0800 (PST)	[thread overview]
Message-ID: <alpine.DEB.2.02.1301151626330.32732@mathewm-linux> (raw)
In-Reply-To: <1358195633-29303-1-git-send-email-johan.hedberg@gmail.com>


Hi Johan -

On Mon, 14 Jan 2013, Johan Hedberg wrote:

> Hi,
>
> I was initially only going to fix the thing in the last patch of this
> set but after starting to look at the code I found several other issues
> and hence the rest of the patches.
>
> The first three patches fix work queue handling. We should, whenever
> possible, avoid the system-global workqueue (the schedule_*work
> functions) and use hdev-specific ones instead.

There are also multiple system workqueues beyond the default 
system_wq, like system_long_wq and system_unbound_wq.  Those may be a 
better fit and you wouldn't have to manage additional per-device 
workqueues.

> However, we can't use
> hci_request() with the usual workqueue since that would block e.g.
> hci_send_cmd from completing so a second work queue is needed.
>
> The last patch fixes a race with setting the scan mode that I was
> seeing every once in a while through a connectable or discoverable test
> case of mgmt-tester failing. There are several other HCI commands with
> the same potential issue (like the class of device and the local name)
> but I haven't gotten around to fixing those yet.

Regards,

--
Mat Martineau

Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation



      parent reply	other threads:[~2013-01-16  0:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-14 20:33 [PATCH 0/4] Bluetooth: Fix workqueue related issues Johan Hedberg
2013-01-14 20:33 ` [PATCH 1/4] Bluetooth: Add a new workqueue for hci_request operations Johan Hedberg
2013-01-14 20:42   ` Marcel Holtmann
2013-01-14 20:33 ` [PATCH 2/4] Bluetooth: Use req_workqueue " Johan Hedberg
2013-01-14 20:43   ` Marcel Holtmann
2013-01-14 20:33 ` [PATCH 3/4] Bluetooth: Fix using system-global workqueue when not necessary Johan Hedberg
2013-01-14 20:44   ` Marcel Holtmann
2013-01-18  5:07   ` Gustavo Padovan
2013-01-14 20:33 ` [PATCH 4/4] Bluetooth: Fix write_scan_enable when HCI_AUTO_OFF is set Johan Hedberg
2013-01-15  1:06   ` Anderson Lizardo
2013-01-16  0:36 ` Mat Martineau [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=alpine.DEB.2.02.1301151626330.32732@mathewm-linux \
    --to=mathewm@codeaurora.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