RDMA/rxe: Use kzmalloc/kfree for mca
authorBob Pearson <rpearsonhpe@gmail.com>
Tue, 8 Feb 2022 21:16:36 +0000 (15:16 -0600)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 16 Feb 2022 15:59:11 +0000 (11:59 -0400)
commitd572405518ffd7c21882c1f2e9a568f2e8548d0b
treebf0bfce87b2c960fb7eb36f9f234d75c547e3a87
parent9fd0eb7c3c73c80a7bbe28dc71ae8ec5698a7e84
RDMA/rxe: Use kzmalloc/kfree for mca

Remove rxe_mca (was rxe_mc_elem) from rxe pools and use kzmalloc and kfree
to allocate and free in rxe_mcast.c. Call kzalloc outside of spinlocks to
avoid having to use GFP_ATOMIC.

Link: https://lore.kernel.org/r/20220208211644.123457-3-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe.c
drivers/infiniband/sw/rxe/rxe_mcast.c
drivers/infiniband/sw/rxe/rxe_pool.c
drivers/infiniband/sw/rxe/rxe_pool.h
drivers/infiniband/sw/rxe/rxe_verbs.h