]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 3 Feb 2022 09:28:50 +0000 (10:28 +0100)
commit91772daa2248c2eba80b0024154983cc3dcc2697
treed91885a07650696ff04832754ecbe4a60cdeeafc
parentf7d44503920cbec64b6b390187af6e40b2e9f298
scsi: elx: efct: Don't use GFP_KERNEL under spin lock

BugLink: https://bugs.launchpad.net/bugs/1959879
commit 61263b3a11a2594b4e898f166c31162236182b5c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/scsi/elx/libefc/efc_els.c