diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-05-11 14:01:26 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-05-11 14:01:26 +0200 |
commit | 3a0d5f41a8253b4a3fbb6ae4b6ca77789fd6ae83 (patch) | |
tree | 0ec29c70ab57f685058dd1d80bc81066ab4f8aa6 /sys/lib/python/compiler/future.py | |
parent | a25819c43a65b5abd44f42f502718e47fffc6923 (diff) |
devip: remove unused c->car qlock, avoid potential deadlock in ipifcregisterproxy()
remove references to the unused Conv.car qlock.
ipifcregisterproxy() is called with the proxy
ifc wlock'd, which means we cannot acquire the
rwlock of the interfaces that will proxy for us
because it is allowed to rlock() multiple ifc's
in any order. to get arround this, we use canrlock()
and skip the interface when we cannot acquire the
lock.
the ifc should get wlock'd only when we are about
to modify the ifc or its lifc chain. that is when
adding or removing addresses. wlock is not required
when we addresses to the selfcache, which has its
own qlock.
Diffstat (limited to 'sys/lib/python/compiler/future.py')
0 files changed, 0 insertions, 0 deletions