diff options
author | Bernard Metzler <bmt@zurich.ibm.com> | 2023-02-02 11:10:00 +0100 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2023-02-06 14:46:50 +0200 |
commit | 65a8fc30fb6722fc25adec6d7dd5b53b0bb85820 (patch) | |
tree | 060f96d1fd17895569f8ef31e8d1118509e11fc6 /drivers/infiniband/hw/mlx5/mlx5_ib.h | |
parent | ef42520240aacfc0d46c8d780c051d135a8dc9b7 (diff) |
RDMA/siw: Fix user page pinning accounting
To avoid racing with other user memory reservations, immediately
account full amount of pages to be pinned.
Fixes: 2251334dcac9 ("rdma/siw: application buffer management")
Reported-by: Jason Gunthorpe <jgg@nvidia.com>
Suggested-by: Alistair Popple <apopple@nvidia.com>
Reviewed-by: Alistair Popple <apopple@nvidia.com>
Signed-off-by: Bernard Metzler <bmt@zurich.ibm.com>
Link: https://lore.kernel.org/r/20230202101000.402990-1-bmt@zurich.ibm.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/mlx5_ib.h')
0 files changed, 0 insertions, 0 deletions