diff options
author | Desmond Cheong Zhi Xi <desmondcheongzx@gmail.com> | 2021-08-10 07:14:09 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-08-10 20:40:48 +0300 |
commit | b7ce436a5d798bc59e71797952566608a4b4626b (patch) | |
tree | 4027da5c88197d11c1f693419b636c74904fccea /net/phonet | |
parent | 3f2c89fb465f63fe14da804a8afcd7ac6776508e (diff) | |
download | linux-b7ce436a5d798bc59e71797952566608a4b4626b.tar.xz |
Bluetooth: switch to lock_sock in RFCOMM
Other than rfcomm_sk_state_change and rfcomm_connect_ind, functions in
RFCOMM use lock_sock to lock the socket.
Since bh_lock_sock and spin_lock_bh do not provide synchronization
with lock_sock, these calls should be changed to lock_sock.
This is now safe to do because packet processing is now done in a
workqueue instead of a tasklet, so bh_lock_sock/spin_lock_bh are no
longer necessary to synchronise between user contexts and SOFTIRQ
processing.
Signed-off-by: Desmond Cheong Zhi Xi <desmondcheongzx@gmail.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'net/phonet')
0 files changed, 0 insertions, 0 deletions