Commit 6258c4fb authored by Xi Wang's avatar Xi Wang Committed by Greg Kroah-Hartman
Browse files

RDMA/hns: Refactor root BT allocation for MTR

[ Upstream commit 1f704d8c ]

Split the hem_list_alloc_root_bt() into serval small functions to make the
code flow more clear.

Link: https://lore.kernel.org/r/1621589395-2435-3-git-send-email-liweihang@huawei.com


Signed-off-by: default avatarXi Wang <wangxi11@huawei.com>
Signed-off-by: default avatarWeihang Li <liweihang@huawei.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
Stable-dep-of: d586628b ("RDMA/hns: Fix the overflow risk of hem_list_calc_ba_range()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d06fbe0b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment