diff options
author | Vlad Buslov <vladbu@mellanox.com> | 2019-03-21 15:17:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-21 14:32:17 -0700 |
commit | e474619a2498c57f7f0ed8b4abb29d6c62e2393b (patch) | |
tree | 25c34d5703e6a1d5c76f9983e982a8aa5bedd83f /lib/zlib_inflate | |
parent | 31f1a0e37cacfd764df5e45e6d91b9a959a5282f (diff) |
net: sched: flower: don't check for rtnl on head dereference
Flower classifier only changes root pointer during init and destroy. Cls
API implements reference counting for tcf_proto, so there is no danger of
concurrent access to tp when it is being destroyed, even without protection
provided by rtnl lock.
Implement new function fl_head_dereference() to dereference tp->root
without checking for rtnl lock. Use it in all flower function that obtain
head pointer instead of rtnl_dereference().
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/zlib_inflate')
0 files changed, 0 insertions, 0 deletions