]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
RDMA/hns: Modify uar allocation algorithm to avoid bitmap exhaust
authorWei Hu(Xavier) <xavier.huwei@huawei.com>
Wed, 23 May 2018 10:16:27 +0000 (18:16 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Tue, 12 Jun 2018 06:28:55 +0000 (02:28 -0400)
commit160d1f27506a9a03a78e35c45e654dbad6655cf5
tree4645c2656e801f67003230db441b3614640ce6e7
parent68be8d718c9fefeebc84449d8b57fdfd13f66073
RDMA/hns: Modify uar allocation algorithm to avoid bitmap exhaust

BugLink: https://bugs.launchpad.net/bugs/1770974
This patch modified uar allocation algorithm in hns_roce_uar_alloc
function to avoid bitmap exhaust.

Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
(cherry picked from commit 5b6eb54f586ba0a6385f1523bce4c96cbdb79afd linux-next)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_pd.c