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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Aug 2021 11:22:07 +0000 (13:22 +0200)
commit9b2b2f07712bd2ab0566dde3bd2ac770841b8a16
treea21da190ea525f6a4ab1a9143970974ed0ddf651
parentd1f2abe57bc1c9cf2fba49174d6e184e9a7ac924
net: sched: fix lockdep_set_class() typo error for sch->seqlock

[ Upstream commit 06f5553e0f0c2182268179b93856187d9cb86dd5 ]

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: 96009c7d500e ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sched/sch_generic.c