Bluetooth: Queue adv_work on system workqueue
authorAndre Guedes <andre.guedes@openbossa.org>
Mon, 2 Jan 2012 22:18:11 +0000 (19:18 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Tue, 3 Jan 2012 00:30:10 +0000 (22:30 -0200)
This patch queues hdev->adv_work on the system-wide workqueue
instead of on hdev->workqueue. This way we keep only tx/rx works
on hdev->workqueue.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hci_event.c

index 444ca410b9e5a5e1499c0e5bd77e2cf1fc77b2b3..08c0b4295ecc06054b3029dd102df1981688a466 100644 (file)
@@ -1054,8 +1054,7 @@ static void hci_cc_le_set_scan_enable(struct hci_dev *hdev,
        case LE_SCANNING_DISABLED:
                clear_bit(HCI_LE_SCAN, &hdev->dev_flags);
 
-               queue_delayed_work(hdev->workqueue, &hdev->adv_work,
-                                                       ADV_CLEAR_TIMEOUT);
+               schedule_delayed_work(&hdev->adv_work, ADV_CLEAR_TIMEOUT);
                break;
 
        default: