linux/drivers/infiniband
Bernard Metzler ac791643e7 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:40:00 +01:00
..
core RDMA/core: Fix ib block iterator counter overflow 2023-02-01 08:27:05 +01:00
hw IB/hfi1: Fix sdma.h tx->num_descs off-by-one errors 2023-03-10 09:39:43 +01:00
sw RDMA/siw: Fix user page pinning accounting 2023-03-10 09:40:00 +01:00
ulp IB/IPoIB: Fix legacy IPoIB due to wrong number of queues 2023-02-14 19:17:58 +01:00
Kconfig RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00
Makefile