From: Dan Williams Date: Tue, 6 Jan 2009 18:38:14 +0000 (-0700) Subject: dmaengine: provide a common 'issue_pending_all' implementation X-Git-Tag: v2.6.29-rc1~39^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ba05622b8b143b0c95968ba59bddfbd6d2f2559;p=pandora-kernel.git dmaengine: provide a common 'issue_pending_all' implementation async_tx and net_dma each have open-coded versions of issue_pending_all, so provide a common routine in dmaengine. The implementation needs to walk the global device list, so implement rcu to allow dma_issue_pending_all to run lockless. Clients protect themselves from channel removal events by holding a dmaengine reference. Reviewed-by: Andrew Morton Signed-off-by: Dan Williams --- Reading git-diff-tree failed