]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit362a9428767494d418a3ebc619a46052679bf81f
treec22ccffdf5577c061606b66d5fc4371d3752c7fd
parent36632e30d07d9fd94361e7f0ab3d062e84730a47
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: 516dd0360be1 ("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