]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pkt_sched: Remove useless qdisc_stab_lock
authorGao Feng <fgao@ikuai8.com>
Fri, 17 Feb 2017 06:34:19 +0000 (14:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Feb 2017 20:10:18 +0000 (15:10 -0500)
commit806a837650501f5eee359a197824db8752fa6e6c
tree30caf1cd7443f876d7e77ecc8941abd88f1abca9
parent88c4845d7dec835ba7ad1379e30a09658b05495d
pkt_sched: Remove useless qdisc_stab_lock

The qdisc_stab_lock is used in qdisc_get_stab and qdisc_put_stab.
These two functions are invoked in qdisc_create, qdisc_change, and
qdisc_destroy which run fully under RTNL.

So it already makes sure only one could access the qdisc_stab_list at
the same time. Then it is unnecessary to use qdisc_stab_lock now.

Signed-off-by: Gao Feng <fgao@ikuai8.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c