ioatdma: clean up sed pool kmem_cache
authorDan Williams <dan.j.williams@intel.com>
Wed, 13 Nov 2013 18:57:18 +0000 (10:57 -0800)
committerDan Williams <dan.j.williams@intel.com>
Thu, 14 Nov 2013 19:04:41 +0000 (11:04 -0800)
commit59056e85d7dd337674c65d9dac65008cb46a98cd
tree2487688810534d3a26e13de707c20747ed78cc86
parent21e96c7313486390c694919522a76dfea0a86c59
ioatdma: clean up sed pool kmem_cache

Use a single cache for all sed allocations.  No need to make it per
channel.  This also avoids the slub_debug warnings for multiple caches
with the same name.

Switching to dmam_pool_create() to fix leaking the dma pools on
initialization failure and lets us kill ioat3_dma_remove().

Cc: Dave Jiang <dave.jiang@intel.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/ioat/dma.h
drivers/dma/ioat/dma_v2.h
drivers/dma/ioat/dma_v3.c
drivers/dma/ioat/pci.c