summaryrefslogtreecommitdiff
path: root/net/bluetooth/hci_sock.c
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-12-15 05:53:47 +0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-12-18 23:07:57 +0400
commitc347b765fe70d718c721cd6d0b979cfbaed83125 (patch)
treef7ab6413eda30d7741173738f6ab1ad5a69c9161 /net/bluetooth/hci_sock.c
parent3c54711c4fd103edf2044ab60726939f1de02b0c (diff)
downloadlinux-c347b765fe70d718c721cd6d0b979cfbaed83125.tar.xz
Bluetooth: Move command task to workqueue
As part of the moving on all the Bluetooth processing to Process context. Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hci_sock.c')
-rw-r--r--net/bluetooth/hci_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c
index 399be345ea22..d10a724810ec 100644
--- a/net/bluetooth/hci_sock.c
+++ b/net/bluetooth/hci_sock.c
@@ -538,7 +538,7 @@ static int hci_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
tasklet_schedule(&hdev->tx_task);
} else {
skb_queue_tail(&hdev->cmd_q, skb);
- tasklet_schedule(&hdev->cmd_task);
+ queue_work(hdev->workqueue, &hdev->cmd_work);
}
} else {
if (!capable(CAP_NET_RAW)) {