Skip to content

Commit 845517e

Browse files
Minghao Chijgunthorpe
authored andcommitted
RDMA/qedr: Remove unnecessary synchronize_irq() before free_irq()
Calling synchronize_irq() right before free_irq() is quite useless. On one hand the IRQ can easily fire again before free_irq() is entered, on the other hand free_irq() itself calls synchronize_irq() internally (in a race condition free way), before any state associated with the IRQ is freed. Link: https://lore.kernel.org/r/[email protected] Reported-by: Zeal Robot <[email protected]> Signed-off-by: Minghao Chi <[email protected]> Acked-by: Michal Kalderon <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 813c980 commit 845517e

File tree

1 file changed

+0
-1
lines changed
  • drivers/infiniband/hw/qedr

1 file changed

+0
-1
lines changed

drivers/infiniband/hw/qedr/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,6 @@ static void qedr_sync_free_irqs(struct qedr_dev *dev)
500500
if (dev->int_info.msix_cnt) {
501501
idx = i * dev->num_hwfns + dev->affin_hwfn_idx;
502502
vector = dev->int_info.msix[idx].vector;
503-
synchronize_irq(vector);
504503
free_irq(vector, &dev->cnq_array[i]);
505504
}
506505
}

0 commit comments

Comments
 (0)