RDMA/rxe: Remove rxe_alloc()
Currently all the object types in the rxe driver are allocated in rdma-core except for MRs. By moving tha kzalloc() call outside of the pool code the rxe_alloc() subroutine can be eliminated and code checking for MR as a special case can be removed. This patch moves the kzalloc() and kfree_rcu() calls into the mr registration and destruction verbs. It removes that code from rxe_pool.c including the rxe_alloc() subroutine which is no longer used. Link: https://lore.kernel.org/r/20230213225551.12437-1-rpearsonhpe@gmail.com Signed-off-by:Bob Pearson <rpearsonhpe@gmail.com> Reviewed-by:
Devesh Sharma <devesh.s.sharma@oracle.com> Reviewed-by:
Devesh Sharma <devesh.s.sharma@oracle.com> Reviewed-by:
Zhu Yanjun <yanjun.zhu@linux.dev> Signed-off-by:
Jason Gunthorpe <jgg@nvidia.com>
Loading
Please sign in to comment