[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250228144051.4c3064b0@kernel.org>
Date: Fri, 28 Feb 2025 14:40:51 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Tony Nguyen <anthony.l.nguyen@...el.com>
Cc: davem@...emloft.net, pabeni@...hat.com, edumazet@...gle.com,
andrew+netdev@...n.ch, netdev@...r.kernel.org, Ahmed Zaki
<ahmed.zaki@...el.com>, willemb@...gle.com, Madhu Chittim
<madhu.chittim@...el.com>, Simon Horman <horms@...nel.org>, Samuel Salin
<Samuel.salin@...el.com>
Subject: Re: [PATCH net v2] idpf: synchronize pending IRQs after disable
On Thu, 27 Feb 2025 13:16:09 -0800 Tony Nguyen wrote:
> IDPF deinits all interrupts in idpf_vport_intr_deinit() by first disabling
> the interrupt registers in idpf_vport_intr_dis_irq_all(), then later on frees
> the irqs in idpf_vport_intr_rel_irq().
>
> Prevent any races by waiting for pending IRQ handler after it is disabled.
> This will ensure the IRQ is cleanly freed afterwards.
You need to explain what is racing with what. Most drivers are fine
with just ordering the teardown carefully. What is racing with the IRQ,
and why can idpf_vport_intr_dis_irq_all() not be moved after that thing
is disabled.
--
pw-bot: cr
Powered by blists - more mailing lists