]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/qedr: Remove unnecessary synchronize_irq() before free_irq()
authorMinghao Chi <chi.minghao@zte.com.cn>
Fri, 13 May 2022 08:16:47 +0000 (08:16 +0000)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 17 May 2022 11:53:30 +0000 (08:53 -0300)
commit206032fd375ff96a073e414df3f056add40347e2
treeab625d051d891a39418c653716996360e4514075
parent3e0c5ecb893a6e72df1e8b6bdaa58de99e6f42a6
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/20220513081647.1631141-1-chi.minghao@zte.com.cn
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Acked-by: Michal KalderonĀ <michal.kalderon@marvell.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/qedr/main.c