]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: fix call_rcu() race on act_sample module removal
authorCong Wang <xiyou.wangcong@gmail.com>
Fri, 27 Oct 2017 01:24:41 +0000 (18:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Oct 2017 13:49:31 +0000 (22:49 +0900)
commit97455dc4e446db101abf935e1a8d6fcc944f9616
treecd968c0a4bb7b8db08d09541301f95290c13db1e
parent952a3103c038075c2b156c2082bddf694ea6d758
net_sched: fix call_rcu() race on act_sample module removal

Similar to commit 5f1f65cdf4b8
("net: sched: fix call_rcu() race on classifier module unloads"),
we need to wait for flying RCU callback tcf_sample_cleanup_rcu().

Cc: Yotam Gigi <yotamg@mellanox.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jiri Pirko <jiri@resnulli.us>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_sample.c