dmaengine: bcm-sba-raid: Improve sba_issue_pending() run duration
authorAnup Patel <anup.patel@broadcom.com>
Tue, 22 Aug 2017 09:56:58 +0000 (15:26 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 28 Aug 2017 11:14:24 +0000 (16:44 +0530)
commitf83385142c3a0864e4ac82d852dd0fdb54742ce3
tree9592128af083cb12b7046b650c4f5cac66738a50
parent5346aafcefb5300921e3bc2d48e48f2103943d58
dmaengine: bcm-sba-raid: Improve sba_issue_pending() run duration

The pending sba_request list can become very long in real-life usage
(e.g. setting up RAID array) which can cause sba_issue_pending() to
run for long duration.

This patch adds common sba_process_deferred_requests() to process
few completed and pending requests so that it finishes in short
duration. We use this common sba_process_deferred_requests() in
both sba_issue_pending() and sba_receive_message().

Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/bcm-sba-raid.c