scsi: qla2xxx: Fix SRB allocation flag to avoid sleeping in IRQ context
authorGiridhar Malavali <gmalavali@marvell.com>
Fri, 25 Jan 2019 07:23:46 +0000 (23:23 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Feb 2019 02:41:16 +0000 (21:41 -0500)
This patch fixes SRB allocation flag from GFP_KERNEL to GFP_ATOMIC, to
prevent sleeping in IRQ context

Signed-off-by: Giridhar Malavali <gmalavali@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_init.c

index aa72e8316533f928bd710059f13499eaff8ad716..3bb4fa97e40a4b0e4368c6c91b03df1bf6af1d1d 100644 (file)
@@ -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;