Re: [PATCH] [SCSI] bfa: allocate memory with GFP_ATOMIC in spinlock context

2014-04-18 Thread Alexey Khoroshilov
Please ignore this patch, it will resend a correct version of it. On 18.04.2014 00:25, Alexey Khoroshilov wrote: > bfa_fcb_pbc_vport_create() is called only from bfa_fcs_pbc_vport_init(), > that is called only from bfad_drv_start() with bfad_lock spinlock held. > So the patch replaces GFP_KERNEL w

[PATCH] [SCSI] bfa: allocate memory with GFP_ATOMIC in spinlock context

2014-04-18 Thread Alexey Khoroshilov
bfa_fcb_pbc_vport_create() is called only from bfa_fcs_pbc_vport_init(), that is called only from bfad_drv_start() with bfad_lock spinlock held. So the patch replaces GFP_KERNEL with GFP_ATOMIC to avoid sleeping in atomic spinlock context. Found by Linux Driver Verification project (linuxtesting.o