dmaengine: Remove a useless mutex
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 6 Feb 2022 09:47:45 +0000 (10:47 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 11 Apr 2022 14:22:40 +0000 (19:52 +0530)
commit52126d4c03798cc55aa927fea4c776ab26b5a5f0
treec438badcf0ee9f80478bf7963db70f14d7c8d197
parent2d7991fe867974a8e5065ee9691451a406b9320d
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>
drivers/dma/dmaengine.c
include/linux/dmaengine.h