powerpc/512x: try to free dma descriptors in case of allocation failure
authorIlya Yanok <yanok@emcraft.com>
Tue, 26 Oct 2010 23:52:58 +0000 (01:52 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 30 Dec 2010 05:29:36 +0000 (22:29 -0700)
commita276991357c63bfb8d3ffdf5800054dba4f8d558
tree8a3bb0d23eb2011f69e426ab1d87bbe311567c96
parentba2eea251f815b3674cde13ecdba4772332bf56e
powerpc/512x: try to free dma descriptors in case of allocation failure

Currently completed descriptors are processed in the tasklet. This can
lead to dead lock in case of CONFIG_NET_DMA enabled (new requests are
submitted from softirq context and dma_memcpy_to_iovec() busy loops until
the requests is submitted). To prevent this we should process completed
descriptors from the allocation failure path in prepare_memcpy too.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Cc: Piotr Ziecik <kosmo@semihalf.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/dma/mpc512x_dma.c