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)
commitb1d6ab1aa8cdc23b89bcd578ea8d5e3c501a13d9
tree645ae3fcc36cdfa89b790c3440e987db7c04bae0
parentbc0e7345168c0f7483d2d1da86285d89136417cd
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