]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/sched/cls_api.c
net_sched: switch to rcu_work
[mirror_ubuntu-bionic-kernel.git] / net / sched / cls_api.c
index 64d414198286974d5ac7333ce496065346407373..115c89c9734e5e428ba5ee9d40bb71fe4ead26f5 100644 (file)
@@ -102,9 +102,10 @@ int unregister_tcf_proto_ops(struct tcf_proto_ops *ops)
 }
 EXPORT_SYMBOL(unregister_tcf_proto_ops);
 
-bool tcf_queue_work(struct work_struct *work)
+bool tcf_queue_work(struct rcu_work *rwork, work_func_t func)
 {
-       return queue_work(tc_filter_wq, work);
+       INIT_RCU_WORK(rwork, func);
+       return queue_rcu_work(tc_filter_wq, rwork);
 }
 EXPORT_SYMBOL(tcf_queue_work);