aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2020-10-26 15:19:31 +0200
committerJason Gunthorpe <jgg@nvidia.com>2020-11-02 14:31:40 -0400
commitfc3325701a6353594083f08e297d4c1965c601aa (patch)
tree40b15b7294d5b61a7eced753cb2913f8c7ce7d29 /tools/perf/scripts/python
parentRDMA/mlx5: Remove mlx5_ib_mr->order (diff)
downloadlinux-fc3325701a6353594083f08e297d4c1965c601aa.tar.gz
linux-fc3325701a6353594083f08e297d4c1965c601aa.zip
RDMA/mlx5: Fix corruption of reg_pages in mlx5_ib_rereg_user_mr()
reg_pages should always contain mr->npage since when the mr is finally de-reg'd it is always subtracted out. If there were any error exits then mlx5_ib_rereg_user_mr() would leave the reg_pages adjusted and this will cause it to be double subtracted eventually. The manipulation of reg_pages is inherently connected to the umem, so lift it out of set_mr_fields() and only adjust it around creating/destroying a umem. reg_pages is only used for diagnostics in sysfs. Fixes: 7d0cc6edcc70 ("IB/mlx5: Add MR cache for large UMR regions") Link: https://lore.kernel.org/r/20201026131936.1335664-3-leon@kernel.org Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions