RDMA/rxe: Change mcg_lock to a _bh lock
authorBob Pearson <rpearsonhpe@gmail.com>
Wed, 4 May 2022 20:28:17 +0000 (15:28 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 5 May 2022 00:29:25 +0000 (21:29 -0300)
commitbfdc0edd11f9501b891a069b5bbd3b16731941e1
treec22ccffdf5577c061606b66d5fc4371d3752c7fd
parenta926a903b7dc39a8a949150258c09290998dd812
RDMA/rxe: Change mcg_lock to a _bh lock

rxe_mcast.c currently uses _irqsave spinlocks for rxe->mcg_lock while
rxe_recv.c uses _bh spinlocks for the same lock.

As there is no case where the mcg_lock can be taken from an IRQ, change
these all to bh locks so we don't have confusing mismatched lock types on
the same spinlock.

Fixes: 6090a0c4c7c6 ("RDMA/rxe: Cleanup rxe_mcast.c")
Link: https://lore.kernel.org/r/20220504202817.98247-1-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_mcast.c