diff options
author | Dan Williams <dan.j.williams@intel.com> | 2013-12-09 22:33:16 +0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2013-12-13 10:43:42 +0400 |
commit | 3cc377b9ae4bd3133bf8ba388d2b2b66b2b973c1 (patch) | |
tree | 3897c44ab6a8cfc9b37f3a11365a2afc0117e3a1 /drivers/dma/dmaengine.c | |
parent | 8e5ee258d98a6643227d958361aec2a62559b804 (diff) | |
download | linux-3cc377b9ae4bd3133bf8ba388d2b2b66b2b973c1.tar.xz |
dmaengine: fix enable for high order unmap pools
The higher order mempools support raid operations, and we want to
disable them when raid support is not enabled. Making them conditional
on ASYNC_TX_DMA is not sufficient as other users (specifically dmatest)
will also issue raid operations. Make raid drivers explicitly request
that the core carry the higher order pools.
Reported-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/dmaengine.c')
-rw-r--r-- | drivers/dma/dmaengine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index ea806bdc12ef..b601024f518c 100644 --- a/drivers/dma/dmaengine.c +++ b/drivers/dma/dmaengine.c @@ -912,7 +912,7 @@ struct dmaengine_unmap_pool { #define __UNMAP_POOL(x) { .size = x, .name = "dmaengine-unmap-" __stringify(x) } static struct dmaengine_unmap_pool unmap_pool[] = { __UNMAP_POOL(2), - #if IS_ENABLED(CONFIG_ASYNC_TX_DMA) + #if IS_ENABLED(CONFIG_DMA_ENGINE_RAID) __UNMAP_POOL(16), __UNMAP_POOL(128), __UNMAP_POOL(256), |