From: Alexander Holler <holler@ahsoftware.de>
To: Marcel Holtmann <marcel@holtmann.org>, linux-bluetooth@vger.kernel.org
Subject: Re: [RFC] Bluetooth: Use struct delayed_work for HCI command timeout
Date: Wed, 04 Jun 2014 23:27:37 +0200 [thread overview]
Message-ID: <538F8F49.7050501@ahsoftware.de> (raw)
In-Reply-To: <538F75A0.8010609@ahsoftware.de>
Am 04.06.2014 21:38, schrieb Alexander Holler:
> Am 01.06.2014 03:38, schrieb Marcel Holtmann:
>> This is an experimental patch that converts hdev->cmd_timer from
>> struct timer_list to struct delayed_work.
>
> I don't know what this patch should change.
>
> If I understand it correctly, a workqueue is used instead of a timer.
> But besides that nothing else was changed. So instead of a timer, a work
> now kills the hci-cmd-task and posts an error. And that is exactly what
> happened here. So after one (failed) try, I've gone back to use my 2
> small patches.
I assume the reasoning for the patch was to get the load of system queue
somehow into the timeout. But that can't work. E.g. if the queue is
already very busy when the hci command is (scheduled to) send and the
(delayed) timeout is put on the queue (too), then it might happen that
the command is send and immediately afterwards the timeout happens. Or
the response from the dongle is already in the queue but happens after
the timeout happens.
Regards,
Alexander Holler
next prev parent reply other threads:[~2014-06-04 21:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-01 1:38 [RFC] Bluetooth: Use struct delayed_work for HCI command timeout Marcel Holtmann
2014-06-04 19:38 ` Alexander Holler
2014-06-04 21:27 ` Alexander Holler [this message]
2014-06-05 10:53 ` Marcel Holtmann
2014-06-09 10:42 ` Alexander Holler
2014-06-12 9:25 ` Lukasz Rymanowski
2014-06-12 9:39 ` Lukasz Rymanowski
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=538F8F49.7050501@ahsoftware.de \
--to=holler@ahsoftware.de \
--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).