]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: tbf: don't call qdisc_put() while holding tree lock
authorZhengchao Shao <shaozhengchao@huawei.com>
Fri, 26 Aug 2022 01:39:30 +0000 (09:39 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 30 Aug 2022 09:41:24 +0000 (11:41 +0200)
commitd2c5796683dfa61a1e176e0943d60b44fa5c456b
tree0f1154e9c417c39fe06deaaff849808686369233
parent5cffc71f9a6822a517d2f9922a6c832a170e57b2
net: sched: tbf: don't call qdisc_put() while holding tree lock

The issue is the same to commit a15da784f8b0 ("net: sched: multiq: don't
call qdisc_put() while holding tree lock"). Qdiscs call qdisc_put() while
holding sch tree spinlock, which results sleeping-while-atomic BUG.

Fixes: d30d424a9fdb ("net: sched: protect block state with mutex")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Link: https://lore.kernel.org/r/20220826013930.340121-1-shaozhengchao@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/sched/sch_tbf.c