Commit ce5a58a
scsi: lpfc: Use irq_set_affinity()
The driver uses irq_set_affinity_hint to set the affinity for the lpfc
interrupts to a mask corresponding to the local NUMA node to avoid
performance overhead on AMD architectures.
However, irq_set_affinity_hint() setting the affinity is an undocumented
side effect that this function also sets the affinity under the hood.
To remove this side effect irq_set_affinity_hint() has been marked as
deprecated and new interfaces have been introduced.
Also, as per the commit dcaa213 ("scsi: lpfc: Change default IRQ model
on AMD architectures"):
"On AMD architecture, revert the irq allocation to the normal style
(non-managed) and then use irq_set_affinity_hint() to set the cpu affinity
and disable user-space rebalancing."
we don't really need to set the affinity_hint as user-space rebalancing for
the lpfc interrupts is not desired.
Hence, replace the irq_set_affinity_hint() with irq_set_affinity() which
only applies the affinity for the interrupts.
Signed-off-by: Nitesh Narayan Lal <nitesh@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: James Smart <jsmart2021@gmail.com>
Link: https://lore.kernel.org/r/20210903152430.244937-12-nitesh@redhat.com1 parent bf886e1 commit ce5a58a
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12709 | 12709 | | |
12710 | 12710 | | |
12711 | 12711 | | |
12712 | | - | |
| 12712 | + | |
12713 | 12713 | | |
12714 | 12714 | | |
12715 | 12715 | | |
| |||
12998 | 12998 | | |
12999 | 12999 | | |
13000 | 13000 | | |
13001 | | - | |
13002 | 13001 | | |
13003 | 13002 | | |
13004 | 13003 | | |
| |||
13159 | 13158 | | |
13160 | 13159 | | |
13161 | 13160 | | |
13162 | | - | |
13163 | 13161 | | |
13164 | 13162 | | |
13165 | 13163 | | |
| |||
0 commit comments