Skip to content
Commit a06d568f authored by Dan Williams's avatar Dan Williams
Browse files

async_xor: dma_map destination DMA_BIDIRECTIONAL



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: <stable@kernel.org>
Cc: Saeed Bishara <saeed@marvell.com>
Acked-by: default avatarYuri Tikhonov <yur@emcraft.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent b0b42b16
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment