aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorBrian King <brking@linux.vnet.ibm.com>2009-05-28 17:17:24 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-06-08 14:07:31 -0400
commit7270b9bde5f382e730e1ef69d6c1b34d388df2b0 (patch)
tree081c826dd97cc7310eab63cfa0b719e6211f98cb /drivers/scsi
parent4a2837d4fcaf8a2c2ad61523287073d0c14b9ed0 (diff)
[SCSI] ibmvfc: Fixup GFP flags for target allocations
Since target allocations can occur while resetting the virtual adapter, we shouldn't be using GFP_KERNEL for them as it could hang. Switch to use GFP_NOIO. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/ibmvscsi/ibmvfc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c
index 879c51133c95..c450a346590e 100644
--- a/drivers/scsi/ibmvscsi/ibmvfc.c
+++ b/drivers/scsi/ibmvscsi/ibmvfc.c
@@ -3420,7 +3420,7 @@ static int ibmvfc_alloc_target(struct ibmvfc_host *vhost, u64 scsi_id)
3420 } 3420 }
3421 spin_unlock_irqrestore(vhost->host->host_lock, flags); 3421 spin_unlock_irqrestore(vhost->host->host_lock, flags);
3422 3422
3423 tgt = mempool_alloc(vhost->tgt_pool, GFP_KERNEL); 3423 tgt = mempool_alloc(vhost->tgt_pool, GFP_NOIO);
3424 if (!tgt) { 3424 if (!tgt) {
3425 dev_err(vhost->dev, "Target allocation failure for scsi id %08llx\n", 3425 dev_err(vhost->dev, "Target allocation failure for scsi id %08llx\n",
3426 scsi_id); 3426 scsi_id);