Re: [PATCH v3 2/2] Bluetooth: Move Stop Discovery to req_workqueue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Johan,

> Since discovery also deals with LE scanning it makes sense to move it
> behind the same req_workqueue as other LE scanning changes. This also
> simplifies the logic since we do many of the actions in a synchronous
> manner.
> 
> Part of this refactoring is moving hci_req_stop_discovery() to
> hci_request.c. At the same time the function receives support for
> properly handling the STOPPING state since that's the state we'll be
> in when stopping through the req_workqueue.
> 
> Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx>
> ---
> include/net/bluetooth/hci_core.h |  1 +
> net/bluetooth/hci_request.c      | 62 ++++++++++++++++++++++++++++++++++
> net/bluetooth/hci_request.h      |  3 ++
> net/bluetooth/mgmt.c             | 72 +++-------------------------------------
> 4 files changed, 71 insertions(+), 67 deletions(-)

both patches have been applied to bluetooth-next tree.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux