scsi: elx: efct: Don't use GFP_KERNEL under spin lock
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 11 Jan 2022 01:24:41 +0000 (09:24 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 25 Jan 2022 04:30:23 +0000 (23:30 -0500)
commit61263b3a11a2594b4e898f166c31162236182b5c
tree54a066529ab1f24b7829b32099485fab10002502
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07
scsi: elx: efct: Don't use GFP_KERNEL under spin lock

GFP_KERNEL/GFP_DMA can't be used under a spin lock. According the comment,
els_ios_lock is used to protect els ios list so we can move down the spin
lock to avoid using this flag under the lock.

Link: https://lore.kernel.org/r/20220111012441.3232527-1-yangyingliang@huawei.com
Fixes: 8f406ef72859 ("scsi: elx: libefc: Extended link Service I/O handling")
Reported-by: Hulk Robot <hulkci@huawei.com>
Reviewed-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/elx/libefc/efc_els.c