acrn-kernel/drivers/infiniband/sw
Bernard Metzler 5e2d29b58c RDMA/siw: Fix user page pinning accounting
[ Upstream commit 65a8fc30fb ]

To avoid racing with other user memory reservations, immediately
account full amount of pages to be pinned.

Fixes: 2251334dca ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:34:11 +01:00
..
rdmavt IB/rdmavt: Add __init/__exit annotations to module init/exit funcs 2022-09-27 10:15:25 -03:00
rxe RDMA/rxe: Fix missing memory barriers in rxe_queue.h 2023-03-10 09:33:40 +01:00
siw RDMA/siw: Fix user page pinning accounting 2023-03-10 09:34:11 +01:00
Makefile