Commit bc7accec8788ada4f459461194c2b8fad94ed239

Authored by Mike Christie
Committed by James Bottomley
1 parent df4da5cdfc

[SCSI] be2iscsi: fix gfp use in alloc_pdu

The pdu allication callout is called from a spin lock
and in the IO path so we cannot use GFP_KERNEL. This
has the driver use GFP_ATOMIC.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/scsi/be2iscsi/be_main.c
... ... @@ -3785,7 +3785,7 @@
3785 3785 dma_addr_t paddr;
3786 3786  
3787 3787 io_task->cmd_bhs = pci_pool_alloc(beiscsi_sess->bhs_pool,
3788   - GFP_KERNEL, &paddr);
  3788 + GFP_ATOMIC, &paddr);
3789 3789 if (!io_task->cmd_bhs)
3790 3790 return -ENOMEM;
3791 3791 io_task->bhs_pa.u.a64.address = paddr;