Re: [PATCH net-next] net: sched: tbf: don't call qdisc_put() while holding tree lock

From: shaozhengchao
Date: Thu Aug 25 2022 - 21:26:07 EST




On 2022/8/26 9:13, Jakub Kicinski wrote:
On Fri, 26 Aug 2022 09:12:48 +0800 Zhengchao Shao wrote:
The issue is the same to commit c2999f7fb05b ("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: c266f64dbfa2 ("net: sched: protect block state with mutex")
Signed-off-by: Zhengchao Shao <shaozhengchao@xxxxxxxxxx>

If it's a bug fix for a commit already in Linus's main tree it should
come with [PATCH net] in the subject (i.e. without the -next).
Please repost.

Hi Jakub:
Thank you for your reply. I will repost this patch.

Zhangchao Shao