]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7d4de8447be259ec58c917265ab0b16239ab37dc
treea36b677744348c78bcb9e0808cc3af89eefe069a
parent384fde7ed224f283f11ef2a592b05d4a29492aa8
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