aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dmaengine.h
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2022-02-06 10:47:45 +0100
committerVinod Koul <vkoul@kernel.org>2022-04-11 19:52:40 +0530
commit52126d4c03798cc55aa927fea4c776ab26b5a5f0 (patch)
treec438badcf0ee9f80478bf7963db70f14d7c8d197 /include/linux/dmaengine.h
parentdmaengine: idxd: update IAA definitions for user header (diff)
downloadlinux-dev-52126d4c03798cc55aa927fea4c776ab26b5a5f0.tar.xz
linux-dev-52126d4c03798cc55aa927fea4c776ab26b5a5f0.zip
dmaengine: Remove a useless mutex
According to lib/idr.c, The IDA handles its own locking. It is safe to call any of the IDA functions without synchronisation in your code. so the 'chan_mutex' mutex can just be removed. It is here only to protect some ida_alloc()/ida_free() calls. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/7180452c1d77b039e27b6f9418e0e7d9dd33c431.1644140845.git.christophe.jaillet@wanadoo.fr Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/linux/dmaengine.h')
-rw-r--r--include/linux/dmaengine.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index 842d4f7ca752..6db9e03afd0b 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -870,7 +870,6 @@ struct dma_device {
struct device *dev;
struct module *owner;
struct ida chan_ida;
- struct mutex chan_mutex; /* to protect chan_ida */
u32 src_addr_widths;
u32 dst_addr_widths;