summaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.c
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2013-12-13 19:26:32 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-14 08:59:54 -0800
commit661f82f6c219dc515ee5123213d8f57481694fe4 (patch)
tree9e4d96bb2d12b0496bd5dff47f0bbf9026fe180d /block/blk-cgroup.c
parentdd608dd29a417da78f6aa1715efb9786787c550e (diff)
downloadblackbird-op-linux-661f82f6c219dc515ee5123213d8f57481694fe4.tar.gz
blackbird-op-linux-661f82f6c219dc515ee5123213d8f57481694fe4.zip
ion: fix bugs in cma heap
Implement ion_cma_unmap_kernel, ion will call it unconditionally. Use correct gfp flags when calling dma_alloc_coherent so it doesn't try to use atomic DMA memory. Check for invalid alignment when allocating. Reject cached allocations - the cpu address returned by dma_alloc_coherent is always going to be an uncached mapping, so map_kernel will not see data written by a cached userspace mapping. Signed-off-by: Colin Cross <ccross@android.com> Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block/blk-cgroup.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud