diff options
author | 2019-03-21 15:17:33 +0200 | |
---|---|---|
committer | 2019-03-21 14:32:17 -0700 | |
commit | e474619a2498c57f7f0ed8b4abb29d6c62e2393b (patch) | |
tree | 25c34d5703e6a1d5c76f9983e982a8aa5bedd83f /kernel/taskstats.c | |
parent | nfp: remove defines for unused control bits (diff) | |
download | wireguard-linux-e474619a2498c57f7f0ed8b4abb29d6c62e2393b.tar.xz wireguard-linux-e474619a2498c57f7f0ed8b4abb29d6c62e2393b.zip |
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 'kernel/taskstats.c')
0 files changed, 0 insertions, 0 deletions