OpenCloudOS-Kernel/drivers/message/fusion
Christophe JAILLET e3af2e3b00 scsi: message: fusion: Use GFP_KERNEL instead of GFP_ATOMIC in non-atomic context
Just a few lines below this kzalloc() we have a mutex_lock() which can
sleep.

Moreover, the only way to call this function is when a delayed work is
schedule. And delayed work can sleep:

  INIT_DELAYED_WORK(&fw_event->work, mptsas_firmware_event_work);
    --> mptsas_firmware_event_work()
      --> mptsas_send_link_status_event()
        --> mptsas_expander_add()

So there is really no good reason to use GFP_ATOMIC here. Change it to
GFP_KERNEL to give more opportunities to the kernel.

Link: https://lore.kernel.org/r/eccb2179ce800529851ed4fabc9d3f95fbbf7d7f.1644906731.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2022-02-27 21:21:21 -05:00
..
lsi scsi: message: mptlan: Replace one-element array with flexible-array member 2021-04-01 23:03:10 -04:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mptbase.c scsi: message: fusion: mptbase: Use dma_alloc_coherent() 2022-01-10 10:33:51 -05:00
mptbase.h scsi: message: fusion: Remove unused mpt_pci driver .probe() 'id' parameter 2021-10-12 17:37:15 -05:00
mptctl.c scsi: message: fusion: mptctl: Use dma_alloc_coherent() 2022-01-10 10:33:52 -05:00
mptctl.h
mptdebug.h scsi: message: fusion: Avoid -Wempty-body warnings 2021-04-01 22:55:25 -04:00
mptfc.c scsi: message: fusion: Switch to attribute groups 2021-10-16 21:45:53 -04:00
mptlan.c scsi: message: fusion: Remove usage of the deprecated "pci-dma-compat.h" API 2022-01-10 10:33:51 -05:00
mptlan.h scsi: fusion: fix if-statement empty body warning 2020-03-11 23:07:57 -04:00
mptsas.c scsi: message: fusion: Use GFP_KERNEL instead of GFP_ATOMIC in non-atomic context 2022-02-27 21:21:21 -05:00
mptsas.h scsi: message: fusion: Remove in_interrupt() usage in mptsas_cleanup_fw_event_q() 2020-12-01 00:03:54 -05:00
mptscsih.c scsi: message: fusion: Switch to attribute groups 2021-10-16 21:45:53 -04:00
mptscsih.h scsi: message: fusion: Switch to attribute groups 2021-10-16 21:45:53 -04:00
mptspi.c scsi: message: fusion: Use GFP_KERNEL 2022-02-11 17:09:27 -05:00