Message ID | 20241109001206.213581-3-ahmed.zaki@intel.com |
---|---|
State | Changes Requested |
Headers | show |
Series | idpf: Preserve IRQ affinity and sync IRQ | expand |
On Fri, 8 Nov 2024 17:12:06 -0700 Ahmed Zaki wrote: > From: Sudheer Mogilappagari <sudheer.mogilappagari@intel.com> > > Wait for pending IRQs to be handled before an interrupt is free'd up. read the kdoc on free_irq(), please
On 2024-11-11 7:54 p.m., Jakub Kicinski wrote: > On Fri, 8 Nov 2024 17:12:06 -0700 Ahmed Zaki wrote: >> From: Sudheer Mogilappagari <sudheer.mogilappagari@intel.com> >> >> Wait for pending IRQs to be handled before an interrupt is free'd up. > > read the kdoc on free_irq(), please IIUC, this patch applies synchronize_irq() after the IRQ is disabled. But I will move it there for clarity. Thanks.
diff --git a/drivers/net/ethernet/intel/idpf/idpf_txrx.c b/drivers/net/ethernet/intel/idpf/idpf_txrx.c index 82e0e3698f10..08acdd383b8d 100644 --- a/drivers/net/ethernet/intel/idpf/idpf_txrx.c +++ b/drivers/net/ethernet/intel/idpf/idpf_txrx.c @@ -3584,6 +3584,7 @@ static void idpf_vport_intr_rel_irq(struct idpf_vport *vport) /* clear the affinity_mask in the IRQ descriptor */ irq_set_affinity_notifier(irq_num, NULL); + synchronize_irq(irq_num); kfree(free_irq(irq_num, q_vector)); } }