Skip to content

Bluetooth: Move more code to hci_request.c & req_workqueue

Johan Hedberg linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Bluetooth: Run page scan updates through hdev->req_workqueueinclude/net/bluetooth/hci_core.h net/bluetooth/hci_event.c net/bluetooth/hci_request.c +2 more+35 -210 replies
2/7Bluetooth: Move __hci_update_background_scan up in hci_request.cnet/bluetooth/hci_request.c+73 -730 replies
3/7Bluetooth: Move advertising instance management to hci_request.cinclude/net/bluetooth/hci_core.h net/bluetooth/hci_conn.c net/bluetooth/hci_core.c +4 more+589 -5660 replies
4/7Bluetooth: Move connectable changes to hdev->req_workqueueinclude/net/bluetooth/hci_core.h net/bluetooth/hci_request.c net/bluetooth/mgmt.c+53 -740 replies
5/7Bluetooth: Perform Class of Device changes through hdev->req_workqueuenet/bluetooth/hci_request.c net/bluetooth/hci_request.h net/bluetooth/mgmt.c+49 -470 replies
6/7Bluetooth: Move discoverable changes to hdev->req_workqueueinclude/net/bluetooth/hci_core.h net/bluetooth/hci_request.c net/bluetooth/mgmt.c+79 -770 replies
7/7Bluetooth: Move discoverable timeout behind hdev->req_workqueueinclude/net/bluetooth/hci_core.h net/bluetooth/hci_core.c net/bluetooth/hci_request.c +1 more+28 -530 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] Bluetooth: Move more code to hci_request.c & req_workqueue

Hi,

This set of patches continues the trend of moving HCI activity from mgmt.c to hci_request.c and running as much of it as possible through the same hdev->req_workqueue with the help of hci_req_sync.

I'll have many more updates coming still after these, but wanted to send what I have at this point since I've sucessfully ran tests on them with mgmt-tester, btmgmt and bluetoothd/bluetoothctl without seeing any breakage (doesn't mean it isn't there though).

Johan

----------------------------------------------------------------
Johan Hedberg (7):

      Bluetooth: Run page scan updates through hdev->req_workqueue
      Bluetooth: Move __hci_update_background_scan up in hci_request.c
      Bluetooth: Move advertising instance management to hci_request.c
      Bluetooth: Move connectable changes to hdev->req_workqueue
      Bluetooth: Perform Class of Device changes through hdev->req_workqueue
      Bluetooth: Move discoverable changes to hdev->req_workqueue
      Bluetooth: Move discoverable timeout behind hdev->req_workqueue
 include/net/bluetooth/hci_core.h |  15 +-
 net/bluetooth/hci_conn.c         |   2 +-
 net/bluetooth/hci_core.c         |  32 +-
 net/bluetooth/hci_event.c        |   8 +-
 net/bluetooth/hci_request.c      | 833 +++++++++++++++++++++++++++++++++----
 net/bluetooth/hci_request.h      |  24 +-
 net/bluetooth/mgmt.c             | 843 ++++----------------------------------
 7 files changed, 876 insertions(+), 881 deletions(-)