mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-01 18:21:29 +00:00
RDMA/siw: Fix user page pinning accounting
[ Upstream commit65a8fc30fb] 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>
This commit is contained in:
parent
42991f51d2
commit
5e2d29b58c
1 changed files with 12 additions and 11 deletions
Loading…
Add table
Add a link
Reference in a new issue