diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2010-12-31 03:22:19 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-31 10:52:22 -0500 |
commit | bc7accec8788ada4f459461194c2b8fad94ed239 (patch) | |
tree | 4a8e044297611ce571ced562aad033b07f82e69d /drivers/scsi/be2iscsi | |
parent | df4da5cdfca05b37b366b9c69925b68586969c1c (diff) |
[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>
Diffstat (limited to 'drivers/scsi/be2iscsi')
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 75a85aa9e882..be07ca06177e 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c | |||
@@ -3785,7 +3785,7 @@ static int beiscsi_alloc_pdu(struct iscsi_task *task, uint8_t opcode) | |||
3785 | dma_addr_t paddr; | 3785 | dma_addr_t paddr; |
3786 | 3786 | ||
3787 | io_task->cmd_bhs = pci_pool_alloc(beiscsi_sess->bhs_pool, | 3787 | io_task->cmd_bhs = pci_pool_alloc(beiscsi_sess->bhs_pool, |
3788 | GFP_KERNEL, &paddr); | 3788 | GFP_ATOMIC, &paddr); |
3789 | if (!io_task->cmd_bhs) | 3789 | if (!io_task->cmd_bhs) |
3790 | return -ENOMEM; | 3790 | return -ENOMEM; |
3791 | io_task->bhs_pa.u.a64.address = paddr; | 3791 | io_task->bhs_pa.u.a64.address = paddr; |