summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-12-17 17:52:27 +0100
committerGustavo F. Padovan <padovan@profusion.mobi>2011-12-18 20:07:58 +0100
commit80b7ab33414beeb3c17600af9b69d903f5cf8a7d (patch)
treeb869a4a292634a0674962dc500915583e8953043 /net/bluetooth/mgmt.c
parentBluetooth: Change l2cap chan_list to use RCU (diff)
downloadlinux-80b7ab33414beeb3c17600af9b69d903f5cf8a7d.tar.xz
linux-80b7ab33414beeb3c17600af9b69d903f5cf8a7d.zip
Bluetooth: move power_off to system workqueue
hdev->workqueue will be only for for rx/tx/cmd processing, all other small works should go to the system workqueue for now. Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to '')
-rw-r--r--net/bluetooth/mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index ad4817c9ef2f..f4af6593c431 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -417,7 +417,7 @@ static int set_powered(struct sock *sk, u16 index, unsigned char *data, u16 len)
if (cp->val)
queue_work(hdev->workqueue, &hdev->power_on);
else
- queue_work(hdev->workqueue, &hdev->power_off.work);
+ schedule_work(&hdev->power_off.work);
err = 0;