Thread (29 messages) flat view 29 messages, 3 authors, 2d ago

Re: [PATCH net 5/8] net: bcmgenet: acquire ring lock with BH disabled in bcmgenet_dump_tx_queue

From: Florian Fainelli <florian.fainelli@broadcom.com>
Date: 2026-09-18 17:40:48
Also in: lkml

On 9/18/26 03:57, Nicolai Buchwitz wrote:
Hi Florian

On 18.9.2026 02:07, Florian Fainelli wrote:
quoted
bcmgenet_dump_tx_queue() is called from bcmgenet_timeout() in process or
timer context and acquires ring->lock using spin_lock(). If a softirq
such as TX NAPI (bcmgenet_tx_poll()) fires on the same CPU while the lock
is held, it will deadlock trying to acquire ring->lock.
AFAIU bcmgenet_timeout() only runs from dev_watchdog(), so BH is already
disabled and no deadlock?
Yes indeed, not sure what I was on with that.
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help