diff options
author | Chuck Lever <[email protected]> | 2021-04-24 15:02:28 -0400 |
---|---|---|
committer | Trond Myklebust <[email protected]> | 2021-04-26 09:22:29 -0400 |
commit | eaf86e8cc85c4abf3e4a2a0d3f59af613d2bacab (patch) | |
tree | 6fe16b108cf0e2181e8bbe4cdfe9601cc1916566 /lib/mpi/mpi-sub-ui.c | |
parent | 5030c9a938f875f31932928632e1597f03e79ace (diff) |
xprtrdma: Improve locking around rpcrdma_rep destruction
Currently rpcrdma_reps_destroy() assumes that, at transport
tear-down, the content of the rb_free_reps list is the same as the
content of the rb_all_reps list. Although that is usually true,
using the rb_all_reps list should be more reliable because of
the way it's managed. And, rpcrdma_reps_unmap() uses rb_all_reps;
these two functions should both traverse the "all" list.
Ensure that all rpcrdma_reps are always destroyed whether they are
on the rep free list or not.
Signed-off-by: Chuck Lever <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions