]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Add a new workqueue for hci_request operations
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 14 Jan 2013 20:33:50 +0000 (22:33 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 18 Jan 2013 04:54:21 +0000 (02:54 -0200)
commitc9c9206ed9c126e55c6bed5c287d1c4ddeddee39
treed7b1a11d2a20c8d36bb9ce39467cecbc7735a640
parent8c68e4e47de09f7b5f4d535b47065dd386c9e05c
Bluetooth: Add a new workqueue for hci_request operations

The hci_request function is blocking and cannot be called through the
usual per-HCI device workqueue (hdev->workqueue). While hci_request is
in progress any other work from the queue, including sending HCI
commands to the controller would be blocked and eventually cause the
hci_request call to time out.

This patch adds a second workqueue to be used by operations needing
hci_request and thereby avoiding issues with blocking other workqueue
users.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c