From: Dan Williams Date: Mon, 8 Dec 2008 20:46:00 +0000 (-0700) Subject: async_xor: dma_map destination DMA_BIDIRECTIONAL X-Git-Tag: v2.6.27.11~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf7af4a82fe408a8c9628480ac3dc272e087ce75;p=pandora-kernel.git async_xor: dma_map destination DMA_BIDIRECTIONAL commit a06d568f7c5e40e34ea64881842deb8f4382babf upstream. Mapping the destination multiple times is a misuse of the dma-api. Since the destination may be reused as a source, ensure that it is only mapped once and that it is mapped bidirectionally. This appears to add ugliness on the unmap side in that it always reads back the destination address from the descriptor, but gcc can determine that dma_unmap is a nop and not emit the code that calculates its arguments. Cc: Saeed Bishara Acked-by: Yuri Tikhonov Signed-off-by: Dan Williams Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed