OSDN Git Service

RDMA/odp: Use kvcalloc for the dma_list and page_list
authorJason Gunthorpe <jgg@mellanox.com>
Mon, 19 Aug 2019 11:17:07 +0000 (14:17 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 21 Aug 2019 17:08:43 +0000 (14:08 -0300)
commit37824952dc8fcd96e5c5a1ce9abf3f0ba09b1e5e
tree295d58dabc52c32e2d9ce83d0e5348643a64af0a
parent204e3e5630c5d41948fc11d8419c07da8f3e5a4d
RDMA/odp: Use kvcalloc for the dma_list and page_list

There is no specific need for these to be in the valloc space, let the
system decide automatically how to do the allocation.

Link: https://lore.kernel.org/r/20190819111710.18440-10-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/umem_odp.c