]> git.hungrycats.org Git - linux/commit
dmaengine: fix dependency chaining
authorYuri Tikhonov <yur@emcraft.com>
Thu, 29 Jan 2009 12:37:13 +0000 (15:37 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Feb 2009 17:53:29 +0000 (09:53 -0800)
commitf8b9d6d4e097b38b199253243b361bee9795cd14
treee800b7fc84ee684dcd8a4774f6c17b715ca19c26
parent16a8b9e71cca9b79a79440ae0e08b39dbb4c8dd6
dmaengine: fix dependency chaining

commit dd59b8537f6cb53ab863fafad86a5828f1e889a2 upstream

 ASYNC_TX: fix dependency chaining

 In ASYNC_TX we track the dependencies between the descriptors
using the 'next' pointers of the structures. These pointers are
set to NULL as soon as the corresponding descriptor has been
submitted to the channel (in async_tx_run_dependencies()).
 But, the first 'next' in chain still remains set, regardless
the fact, that tx->next is already submitted. This may lead to
multiple submisions of the same descriptor. This patch fixes this.

Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
crypto/async_tx/async_tx.c