]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: sched: use Qdisc rcu API instead of relying on rtnl lock
authorVlad Buslov <vladbu@mellanox.com>
Mon, 24 Sep 2018 16:22:53 +0000 (19:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Sep 2018 03:17:36 +0000 (20:17 -0700)
commite368fdb61d8e7c67ac70791b23345b26d7bbc661
tree18efb2d077e930a9b7829ed151f208e2345badf6
parent9d7e82cec35c027756ec97e274f878251f271181
net: sched: use Qdisc rcu API instead of relying on rtnl lock

As a preparation from removing rtnl lock dependency from rules update path,
use Qdisc rcu and reference counting capabilities instead of relying on
rtnl lock while working with Qdiscs. Create new tcf_block_release()
function, and use it to free resources taken by tcf_block_find().
Currently, this function only releases Qdisc and it is extended in next
patches in this series.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c