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)
commit8c297d52654ca0d37886cad3dae40df45287a458
tree54a066529ab1f24b7829b32099485fab10002502
parent6e424e6bafec35e47db4b693fe41eff065b7dbf6
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: 850ff92c29a8 ("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