aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@mellanox.com>2018-09-24 19:22:58 +0300
committerDavid S. Miller <davem@davemloft.net>2018-09-25 20:17:36 -0700
commit787ce6d02d95d01eb8633865eb5b2be1f7c94883 (patch)
tree1a42fbc8920ccbe2d8b7647610bbd9fbd1d74854 /net/tipc
parentnet: sched: implement tcf_block_refcnt_{get|put}() (diff)
downloadlinux-dev-787ce6d02d95d01eb8633865eb5b2be1f7c94883.tar.xz
linux-dev-787ce6d02d95d01eb8633865eb5b2be1f7c94883.zip
net: sched: use reference counting for tcf blocks on rules update
In order to remove dependency on rtnl lock on rules update path, always take reference to block while using it on rules update path. Change tcf_block_get() error handling to properly release block with reference counting, instead of just destroying it, in order to accommodate potential concurrent users. 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/tipc')
0 files changed, 0 insertions, 0 deletions