Re: [PATCH -next v2] scsi: efct: don't use GFP_KERNEL under spin lock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/10/2022 5:24 PM, Yang Yingliang wrote:
GFP_KERNEL/GFP_DMA can't be used under a spin lock, according the
comment of els_ios_lock, it's used to protect els ios list, so we
can move down the spin lock to avoid using this flag under the lock.

Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
Fixes: 8f406ef72859 ("scsi: elx: libefc: Extended link Service I/O handling")
Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>
---
v2:
   move up unlock to just protect list_add_tail()
---
  drivers/scsi/elx/libefc/efc_els.c | 8 ++------
  1 file changed, 2 insertions(+), 6 deletions(-)


Looks fine.

Reviewed-by: James Smart <jsmart2021@xxxxxxxxx>

-- james



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux