]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: Add might_sleep() to dmaengine_synchronize()
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 23 Nov 2015 10:06:43 +0000 (11:06 +0100)
committerVinod Koul <vinod.koul@intel.com>
Sat, 5 Dec 2015 08:13:30 +0000 (13:43 +0530)
commit9f71ca44d24b8ff213c339c992deed753e3bfb1b
tree645ae3fcc36cdfa89b790c3440e987db7c04bae0
parentc12fec21c0975d8ef9fe1d8963d44a72f6e9f4b2
dmaengine: Add might_sleep() to dmaengine_synchronize()

Implementations of dmaengine_synchronize() are allowed to sleep, hence the
function must not be called to from atomic context. Add might_sleep() to
dmaengine_synchronize() to make it easier to detect non-compliant callers.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
include/linux/dmaengine.h