Skip to content

Commit 06f5553

Browse files
Yunsheng Lindavem330
authored andcommitted
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: 96009c7 ("sched: replace __QDISC_STATE_RUNNING bit with a spin lock") Signed-off-by: Yunsheng Lin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d1a58c0 commit 06f5553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sched/sch_generic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ struct Qdisc *qdisc_alloc(struct netdev_queue *dev_queue,
913913

914914
/* seqlock has the same scope of busylock, for NOLOCK qdisc */
915915
spin_lock_init(&sch->seqlock);
916-
lockdep_set_class(&sch->busylock,
916+
lockdep_set_class(&sch->seqlock,
917917
dev->qdisc_tx_busylock ?: &qdisc_tx_busylock);
918918

919919
seqcount_init(&sch->running);

0 commit comments

Comments
 (0)