aboutsummaryrefslogtreecommitdiffstats
path: root/net/kcm
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@mellanox.com>2019-02-11 10:55:33 +0200
committerDavid S. Miller <davem@davemloft.net>2019-02-12 13:41:32 -0500
commit91052fa1c657d83d570a3ab0ca0ddf87713b5cc8 (patch)
treec2eae211be987d6412a72a8c73edb0c345c296af /net/kcm
parentnet: sched: protect block state with mutex (diff)
downloadlinux-dev-91052fa1c657d83d570a3ab0ca0ddf87713b5cc8.tar.xz
linux-dev-91052fa1c657d83d570a3ab0ca0ddf87713b5cc8.zip
net: sched: protect chain->explicitly_created with block->lock
In order to remove dependency on rtnl lock, protect tcf_chain->explicitly_created flag with block->lock. Consolidate code that checks and resets 'explicitly_created' flag into __tcf_chain_put() to execute it atomically with rest of code that puts chain reference. Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/kcm')
0 files changed, 0 insertions, 0 deletions