diff options
author | David Herrmann <[email protected]> | 2013-04-06 20:28:44 +0200 |
---|---|---|
committer | Gustavo Padovan <[email protected]> | 2013-04-17 03:02:10 -0300 |
commit | 9c903e373c11f62d62bce1209f662ca92589a075 (patch) | |
tree | 285f6ef70c1e869b7ebd86dcad2a4057ea61134e /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 3764eaa922c78037ad9bed06be5c8b8a5c83b37d (diff) |
Bluetooth: l2cap: introduce l2cap_conn ref-counting
If we want to use l2cap_conn outside of l2cap_core.c, we need refcounting
for these objects. Otherwise, we cannot synchronize l2cap locks with
outside locks and end up with deadlocks.
Hence, introduce ref-counting for l2cap_conn objects. This doesn't affect
l2cap internals at all, as they use a direct synchronization.
We also keep a reference to the parent hci_conn for locking purposes as
l2cap_conn depends on this. This doesn't affect the connection itself but
only the lifetime of the (dead) object.
Signed-off-by: David Herrmann <[email protected]>
Acked-by: Marcel Holtmann <[email protected]>
Signed-off-by: Gustavo Padovan <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions