]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: fix lockdep_set_class() typo error for sch->seqlock
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 3 Aug 2021 10:58:21 +0000 (18:58 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Aug 2021 08:59:24 +0000 (09:59 +0100)
commita135c9a755e5842bb58b3cc156ba49858fa61f9e
treecd9d96075fb87576fff54b1cc8a14613c290b93f
parent698eb22434d12e2bc32d63f241e606ccefceb5b1
net: sched: fix lockdep_set_class() typo error for sch->seqlock

According to comment in qdisc_alloc(), sch->seqlock's lockdep
class key should be set to qdisc_tx_busylock, due to possible
type error, sch->busylock's lockdep class key is set to
qdisc_tx_busylock, which is duplicated because sch->busylock's
lockdep class key is already set in qdisc_alloc().

So fix it by replacing sch->busylock with sch->seqlock.

Fixes: 4e589b84eac8 ("sched: replace __QDISC_STATE_RUNNING bit with a spin lock")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_generic.c