linux/drivers/infiniband/hw/usnic
Leon Romanovsky ed3760b376 RDMA/usnic: use kmalloc() for the page pointer array
usnic_uiom_get_pages() uses a page-sized array of struct page pointers
as temporary storage for pin_user_pages(). Nothing requires the array to
come directly from the page allocator.

Use kmalloc() for the array and kfree() after the pinning loop.

Link: https://patch.msgid.link/20260715-get_pages-to-kmalloc-v1-3-b0b7fce288be@nvidia.com
Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
2026-07-20 09:45:43 -04:00
..
Kconfig
Makefile
usnic_abi.h kernel-wide: add explicity||explicitly to spelling.txt 2025-01-12 20:21:06 -08:00
usnic_common_pkt_hdr.h
usnic_common_util.h
usnic_debugfs.c
usnic_debugfs.h
usnic_fwd.c RDMA/usnic: User strscpy() to copy device name 2026-06-09 14:57:37 -03:00
usnic_fwd.h
usnic_ib_main.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
usnic_ib_qp_grp.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
usnic_ib_qp_grp.h
usnic_ib_sysfs.c
usnic_ib_sysfs.h
usnic_ib_verbs.c RDMA: Use ib_no_udata_io() in query_device callbacks 2026-07-20 09:00:40 -04:00
usnic_ib_verbs.h IB: Extend UVERBS_METHOD_REG_MR to get DMAH 2025-07-23 01:42:11 -04:00
usnic_ib.h
usnic_log.h
usnic_transport.c
usnic_transport.h
usnic_uiom_interval_tree.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
usnic_uiom_interval_tree.h interval_tree: Fix ITSTATIC usage for *_subtree_search() 2025-10-14 14:45:22 -07:00
usnic_uiom.c RDMA/usnic: use kmalloc() for the page pointer array 2026-07-20 09:45:43 -04:00
usnic_uiom.h RDMA/usnic: Annotate struct usnic_uiom_chunk with __counted_by 2023-10-02 14:44:54 +03:00
usnic_vnic.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
usnic_vnic.h
usnic.h