commit | 2cbfab07c69657a5a60323f86143f4ce8a829fa9 | [log] [tgz] |
---|---|---|
author | Vlad Buslov <vladbu@mellanox.com> | Mon Feb 11 10:55:34 2019 +0200 |
committer | David S. Miller <davem@davemloft.net> | Tue Feb 12 13:41:32 2019 -0500 |
tree | 0c7fcdb0554f25b1cfe3e1afdfc7b5620978b561 | |
parent | 91052fa1c657d83d570a3ab0ca0ddf87713b5cc8 [diff] |
net: sched: refactor tc_ctl_chain() to use block->lock In order to remove dependency on rtnl lock, modify chain API to use block->lock to protect chain from concurrent modification. Rearrange tc_ctl_chain() code to call tcf_chain_hold() while holding block->lock to prevent concurrent chain removal. Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>