]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "net_sched: hold netns refcnt for each action"
authorCong Wang <xiyou.wangcong@gmail.com>
Mon, 6 Nov 2017 21:47:18 +0000 (13:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Nov 2017 01:03:09 +0000 (10:03 +0900)
commit17e803e09c22de4de5bad70e386e66e544e94f31
treead2918c2f935998144a787fd643d06e16e5a56a2
parent7eafd662a7c62d7e00e6eb48585918ba0e3f2ba9
Revert "net_sched: hold netns refcnt for each action"

This reverts commit 62ca364491a4018305cc1fb18f034c39bcc9f995.
If we hold that refcnt, the netns can never be destroyed until
all actions are destroyed by user, this breaks our netns design
which we expect all actions are destroyed when we destroy the
whole netns.

Cc: Lucas Bates <lucasb@mojatatu.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 files changed:
include/net/act_api.h
net/sched/act_api.c
net/sched/act_bpf.c
net/sched/act_connmark.c
net/sched/act_csum.c
net/sched/act_gact.c
net/sched/act_ife.c
net/sched/act_ipt.c
net/sched/act_mirred.c
net/sched/act_nat.c
net/sched/act_pedit.c
net/sched/act_police.c
net/sched/act_sample.c
net/sched/act_simple.c
net/sched/act_skbedit.c
net/sched/act_skbmod.c
net/sched/act_tunnel_key.c
net/sched/act_vlan.c