diff options
author | Dan Williams <dan.j.williams@intel.com> | 2013-11-13 13:57:18 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2013-11-14 14:04:41 -0500 |
commit | 59056e85d7dd337674c65d9dac65008cb46a98cd (patch) | |
tree | 2487688810534d3a26e13de707c20747ed78cc86 /drivers/dma/ioat/dma.h | |
parent | 21e96c7313486390c694919522a76dfea0a86c59 (diff) |
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>
Diffstat (limited to 'drivers/dma/ioat/dma.h')
-rw-r--r-- | drivers/dma/ioat/dma.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma/ioat/dma.h b/drivers/dma/ioat/dma.h index 4300d5af188f..df552d841481 100644 --- a/drivers/dma/ioat/dma.h +++ b/drivers/dma/ioat/dma.h | |||
@@ -83,7 +83,6 @@ struct ioatdma_device { | |||
83 | struct pci_pool *completion_pool; | 83 | struct pci_pool *completion_pool; |
84 | #define MAX_SED_POOLS 5 | 84 | #define MAX_SED_POOLS 5 |
85 | struct dma_pool *sed_hw_pool[MAX_SED_POOLS]; | 85 | struct dma_pool *sed_hw_pool[MAX_SED_POOLS]; |
86 | struct kmem_cache *sed_pool; | ||
87 | struct dma_device common; | 86 | struct dma_device common; |
88 | u8 version; | 87 | u8 version; |
89 | struct msix_entry msix_entries[4]; | 88 | struct msix_entry msix_entries[4]; |