Skip to content

Commit

Permalink
scsi: qedi: Use GFP_NOIO for TMF allocation
Browse files Browse the repository at this point in the history
We run from a workqueue with no locks held so use GFP_NOIO.

Link: https://lore.kernel.org/r/20210525181821.7617-24-michael.christie@oracle.com
Reviewed-by: Manish Rangankar <mrangankar@marvell.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  • Loading branch information
Mike Christie authored and Martin K. Petersen committed Jun 2, 2021
1 parent f7eea75 commit 140d63b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/qedi/qedi_fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ static void qedi_abort_work(struct work_struct *work)
goto clear_cleanup;
}

list_work = kzalloc(sizeof(*list_work), GFP_ATOMIC);
list_work = kzalloc(sizeof(*list_work), GFP_NOIO);
if (!list_work) {
QEDI_ERR(&qedi->dbg_ctx, "Memory allocation failed\n");
goto clear_cleanup;
Expand Down

0 comments on commit 140d63b

Please sign in to comment.