summaryrefslogtreecommitdiff
path: root/arch/avr32
diff options
context:
space:
mode:
authorKrister Johansen <kjlx@templeofstupid.com>2017-01-04 09:22:52 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-22 11:43:35 (GMT)
commit2382c1486c62a21d162f0d457c61cd87a2498ffd (patch)
treeea0115d58cc88ecd69ccb038b0fb5200921d0624 /arch/avr32
parent0e0f1d6fdb353fc886ee99d646c561e4ad3d4ebc (diff)
downloadlinux-2382c1486c62a21d162f0d457c61cd87a2498ffd.tar.xz
dmaengine: iota: ioat_alloc_chan_resources should not perform sleeping allocations.
commit 21d25f6a4217e755906cb548b55ddab39d0e88b9 upstream. On a kernel with DEBUG_LOCKS, ioat_free_chan_resources triggers an in_interrupt() warning. With PROVE_LOCKING, it reports detecting a SOFTIRQ-safe to SOFTIRQ-unsafe lock ordering in the same code path. This is because dma_generic_alloc_coherent() checks if the GFP flags permit blocking. It allocates from different subsystems if blocking is permitted. The free path knows how to return the memory to the correct allocator. If GFP_KERNEL is specified then the alloc and free end up going through cma_alloc(), which uses mutexes. Given that ioat_free_chan_resources() can be called in interrupt context, ioat_alloc_chan_resources() must specify GFP_NOWAIT so that the allocations do not block and instead use an allocator that uses spinlocks. Signed-off-by: Krister Johansen <kjlx@templeofstupid.com> Acked-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/avr32')
0 files changed, 0 insertions, 0 deletions