]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: using kfree_rcu() to simplify the code
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 16 Feb 2019 08:19:55 +0000 (08:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Feb 2019 00:34:51 +0000 (16:34 -0800)
commitbc6e7f32257a0abc7c0c9a0a313158dcbd2934e9
treeca6e180f89295fcf044b6050435dcb023ff25ec8
parent62ebb78f80138d6924bf668fd0b5d51052d01af2
net: sched: using kfree_rcu() to simplify the code

The callback function of call_rcu() just calls a kfree(), so we
can use kfree_rcu() instead of call_rcu() + callback function.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c