scsi: remove gfp_flags member in scsi_host_cmd_pool
authorChristoph Hellwig <hch@lst.de>
Mon, 2 Jan 2017 11:38:03 +0000 (14:38 +0300)
committerJens Axboe <axboe@fb.com>
Fri, 27 Jan 2017 22:08:35 +0000 (15:08 -0700)
commit0fbc3e0ff623f1012e7c2af96e781eeb26bcc0d7
tree6a05168428a2bdf523d742156a83d0aff2bba3be
parent80e1836cf94e0c9a410c1e31302b1d61bf5b7363
scsi: remove gfp_flags member in scsi_host_cmd_pool

When using the slab allocator we already decide at cache creation time if
an allocation comes from a GFP_DMA pool using the SLAB_CACHE_DMA flag,
and there is no point passing the kmalloc-family only GFP_DMA flag to
kmem_cache_alloc.  Drop all the infrastructure for doing so.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/scsi/scsi.c