]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[SCSI] don't use __GFP_DMA for sense buffers if not required
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Sun, 20 Jan 2008 15:28:24 +0000 (09:28 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 23 Jan 2008 17:37:44 +0000 (11:37 -0600)
commit5b7f16804ad90e7f7a10c05b6a2e782598d9745a
tree2228c575b0b001eaf76f48216fee2f066065681a
parentde25deb18016f66dcdede165d07654559bb332bc
[SCSI] don't use __GFP_DMA for sense buffers if not required

Only hosts which actually have ISA DMA requirements need sense buffers
coming out of ZONE_DMA, so only use the __GFP_DMA flag for that case
to avoid allocating this scarce resource if it's not necessary.

[tomo: fixed slab leak in failure case]
Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/hosts.c
drivers/scsi/scsi.c
drivers/scsi/scsi_priv.h