]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/sched/act_police.c
net,rcu: convert call_rcu(tcf_police_free_rcu) to kfree_rcu()
[karo-tx-linux.git] / net / sched / act_police.c
index 8a1630774fd6bdd6536f199b9665517e67312381..d6bcd64e91de198f852d2335fd735303bf396594 100644 (file)
@@ -96,11 +96,6 @@ nla_put_failure:
        goto done;
 }
 
-static void tcf_police_free_rcu(struct rcu_head *head)
-{
-       kfree(container_of(head, struct tcf_police, tcf_rcu));
-}
-
 static void tcf_police_destroy(struct tcf_police *p)
 {
        unsigned int h = tcf_hash(p->tcf_index, POL_TAB_MASK);
@@ -121,7 +116,7 @@ static void tcf_police_destroy(struct tcf_police *p)
                         * gen_estimator est_timer() might access p->tcf_lock
                         * or bstats, wait a RCU grace period before freeing p
                         */
-                       call_rcu(&p->tcf_rcu, tcf_police_free_rcu);
+                       kfree_rcu(p, tcf_rcu);
                        return;
                }
        }