linux/drivers/scsi/megaraid
Nitesh Narayan Lal 8049da6f39 scsi: megaraid_sas: Use irq_set_affinity_and_hint()
The driver uses irq_set_affinity_hint() specifically for the high IOPS
queue interrupts for two purposes:

 - To set the affinity_hint which is consumed by the userspace for
   distributing the interrupts

 - To apply an affinity that it provides

The driver enforces its own affinity to bind the high IOPS queue interrupts
to the local NUMA node. However, irq_set_affinity_hint() applying the
provided cpumask as an affinity for the interrupt is an undocumented side
effect.

To remove this side effect irq_set_affinity_hint() has been marked
as deprecated and new interfaces have been introduced. Hence, replace the
irq_set_affinity_hint() with the new interface irq_set_affinity_and_hint()
where the provided mask needs to be applied as the affinity and
affinity_hint pointer needs to be set and replace with
irq_update_affinity_hint() where only affinity_hint needs to be updated.

Change the megasas_set_high_iops_queue_affinity_hint function name to
megasas_set_high_iops_queue_affinity_and_hint to clearly indicate that the
function is setting both affinity and affinity_hint.

Signed-off-by: Nitesh Narayan Lal <nitesh@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Sumit Saxena <sumit.saxena@broadcom.com>
Link: https://lore.kernel.org/r/20210903152430.244937-5-nitesh@redhat.com
2021-12-10 20:47:38 +01:00
..
Kconfig.megaraid SCSI misc on 20190709 2019-07-11 15:14:01 -07:00
Makefile
mbox_defs.h treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
mega_common.h treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
megaraid_ioctl.h
megaraid_mbox.c scsi: megaraid_mbox: Switch to attribute groups 2021-10-16 21:45:56 -04:00
megaraid_mbox.h treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
megaraid_mm.c scsi: megaraid_mm: Fix end of loop tests for list_for_each_entry() 2021-07-28 23:29:09 -04:00
megaraid_mm.h
megaraid_sas.h scsi: megaraid_sas: Driver version update to 07.719.03.00-rc1 2021-10-04 23:20:10 -04:00
megaraid_sas_base.c scsi: megaraid_sas: Use irq_set_affinity_and_hint() 2021-12-10 20:47:38 +01:00
megaraid_sas_debugfs.c
megaraid_sas_fp.c scsi: megaraid_sas: Early detection of VD deletion through RaidMap update 2021-06-02 01:06:33 -04:00
megaraid_sas_fusion.c scsi: megaraid_sas: Call scsi_done() directly 2021-10-16 21:29:15 -04:00
megaraid_sas_fusion.h scsi: megaraid_sas: mq_poll support 2021-03-04 17:37:03 -05:00