]> git.itanic.dy.fi Git - linux-stable/commit
net: sched: avoid unnecessary seqcount operation for lockless qdisc
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 22 Jun 2021 06:49:55 +0000 (14:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jun 2021 19:17:35 +0000 (12:17 -0700)
commitdd25296afaf60b5140ddfa9e3d8e5d9df7076754
treeb40d4c10c3406f24480ee664c88f138aa1e3b569
parent38f75922a6905b010f597fc70dbb5db28398728e
net: sched: avoid unnecessary seqcount operation for lockless qdisc

qdisc->running seqcount operation is mainly used to do heuristic
locking on q->busylock for locked qdisc, see qdisc_is_running()
and __dev_xmit_skb().

So avoid doing seqcount operation for qdisc with TCQ_F_NOLOCK
flag.

Acked-by: Jakub Kicinski <kuba@kernel.org>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com> # flexcan
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h