]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
dmaengine: bcm-sba-raid: Peek mbox when we have no free requests
authorAnup Patel <anup.patel@broadcom.com>
Tue, 22 Aug 2017 09:57:00 +0000 (15:27 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 28 Aug 2017 11:14:24 +0000 (16:44 +0530)
commit6df8f913d229e459730fffff7e78ac331140955e
tree158de7cfb961b8ca67c987cf38245ef848843dce
parenteb67744b9af736073d6dffb7fb139f3f05d7e6a8
dmaengine: bcm-sba-raid: Peek mbox when we have no free requests

When setting up RAID array on several NVMe disks we observed that
sba_alloc_request() start failing (due to no free requests left)
and RAID array setup becomes very slow.

To improve performance, we do mbox channel peek when we have
no free requests. This improves performance of RAID array setup
because mbox requests that were completed but not processed by
mbox completion worker will be processed immediately by mbox
channel peek.

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