]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5bbd218c75983642de33af03b2494252af059b1b
tree54a066529ab1f24b7829b32099485fab10002502
parent991a5e519c2aa1f4ed2bf6e2139997d7e7967cb3
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: dcb9226b2135 ("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