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)
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>

No differences found