dmaengine: bcm-sba-raid: serialize dma_cookie_complete() using reqs_lock
authorAnup Patel <anup.patel@broadcom.com>
Tue, 3 Oct 2017 05:22:57 +0000 (10:52 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 23 Oct 2017 06:05:47 +0000 (11:35 +0530)
commit5d74aa7f641a8bf778b87941ae6a955121f64f7d
treea36b677744348c78bcb9e0808cc3af89eefe069a
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
dmaengine: bcm-sba-raid: serialize dma_cookie_complete() using reqs_lock

As-per documentation in driver/dma/dmaengine.h, the
dma_cookie_complete() API should be called with lock
held.

This patch ensures that Broadcom SBA RAID driver calls
the dma_cookie_complete() API with reqs_lock held.

Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/bcm-sba-raid.c