diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2021-09-15 13:25:19 -0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-10-04 16:07:39 -0300 |
commit | 99cfddb8a8bd57122effa808653dec83408705a6 (patch) | |
tree | fe7add88e7134dac19600ecd201b9f8ebc3435b0 /drivers/infiniband/core/opa_smi.h | |
parent | c78d218fc5a9995d6b50aa38814bef4fbc88a77d (diff) |
RDMA/cma: Split apart the multiple uses of the same list heads
Two list heads in the rdma_id_private are being used for multiple
purposes, to save a few bytes of memory. Give the different purposes
different names and union the memory that is clearly exclusive.
list splits into device_item and listen_any_item. device_item is threaded
onto the cma_device's list and listen_any goes onto the
listen_any_list. IDs doing any listen cannot have devices.
listen_list splits into listen_item and listen_list. listen_list is on the
parent listen any rdma_id_private and listen_item is on child listen that
is bound to a specific cma_dev.
Which name should be used in which case depends on the state and other
factors of the rdma_id_private. Remap all the confusing references to make
sense with the new names, so at least there is some hope of matching the
necessary preconditions with each access.
Link: https://lore.kernel.org/r/0-v1-a5ead4a0c19d+c3a-cma_list_head_jgg@nvidia.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/core/opa_smi.h')
0 files changed, 0 insertions, 0 deletions