RDMA/rxe: Remove unneeded pool->state
authorBob Pearson <rpearsonhpe@gmail.com>
Mon, 25 Jan 2021 21:16:40 +0000 (15:16 -0600)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 28 Jan 2021 19:29:56 +0000 (15:29 -0400)
commiteae5f0642e2f6a07a73f3fd60ecfeae9b4b32d5c
tree76bd8d0593f426006381e3a56f05f5fd492e9ca9
parent6cde3e8ec16f8318bab119ad1e16dd90677bc897
RDMA/rxe: Remove unneeded pool->state

rxe_pool.c uses the field pool->state to mark a pool as invalid when it is
shut down and checks it in several pool APIs to verify that the pool has
not been shut down. This is unneeded because the pools are not marked
invalid unless the entire driver is being removed at which point no
functional APIs should or could be executing. This patch removes this
field and associated code.

Link: https://lore.kernel.org/r/20210125211641.2694-6-rpearson@hpe.com
Suggested-by: zyjzyj2000@gmail.c
Signed-off-by: Bob Pearson <rpearson@hpe.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_pool.c
drivers/infiniband/sw/rxe/rxe_pool.h