[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)
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>

No differences found