diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2013-10-15 19:24:46 -0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2013-10-15 16:42:44 -0700 |
commit | f8e73017c15b007bd519d0049305bb377e8cc1f5 (patch) | |
tree | 84aac391f8318e1771140401c9ea109f516fdc09 /net/bluetooth/a2mp.c | |
parent | 53f5212121fc3bcd0bccb8841c01e08ca942f333 (diff) | |
download | linux-f8e73017c15b007bd519d0049305bb377e8cc1f5.tar.gz linux-f8e73017c15b007bd519d0049305bb377e8cc1f5.tar.bz2 linux-f8e73017c15b007bd519d0049305bb377e8cc1f5.zip |
Bluetooth: Add l2cap_state_change_and_error()
l2cap_state_change_and_error() introduces the ability to update a
l2cap_user with changes in channel's state and error code with just one
call. The main reason for this is to avoid race conditions between and
setting the state and then the error. Otherwise we would need to release
the lock between both operations.
This is another step of an ongoing work to make l2cap_core.c totally
independent from l2cap's struct sock.
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/a2mp.c')
0 files changed, 0 insertions, 0 deletions