From: Giridhar Malavali Date: Fri, 25 Jan 2019 07:23:46 +0000 (-0800) Subject: scsi: qla2xxx: Fix SRB allocation flag to avoid sleeping in IRQ context X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=97a93cea887376e13ea7d473ab349181850f4e39;p=openwrt%2Fstaging%2Fblogic.git scsi: qla2xxx: Fix SRB allocation flag to avoid sleeping in IRQ context This patch fixes SRB allocation flag from GFP_KERNEL to GFP_ATOMIC, to prevent sleeping in IRQ context Signed-off-by: Giridhar Malavali Signed-off-by: Himanshu Madhani Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index aa72e8316533..3bb4fa97e40a 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -1829,7 +1829,7 @@ qla24xx_async_abort_cmd(srb_t *cmd_sp, bool wait) int rval = QLA_FUNCTION_FAILED; sp = qla2xxx_get_qpair_sp(cmd_sp->vha, cmd_sp->qpair, cmd_sp->fcport, - GFP_KERNEL); + GFP_ATOMIC); if (!sp) goto done;