]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rds: ib: Implement proper cm_id compare
authorHåkon Bugge <haakon.bugge@oracle.com>
Fri, 5 Apr 2019 13:09:46 +0000 (15:09 +0200)
committerBrian Maly <brian.maly@oracle.com>
Tue, 21 May 2019 22:01:12 +0000 (18:01 -0400)
commit0cdb52d4b2c681db3a4b6caf7a4a5ebe5ace38c7
tree650e415891b5fedad2295822c6ae16816532f128
parenta4092269bb18c2003d9200b143e8070b4867ba6e
rds: ib: Implement proper cm_id compare

RDS attempts to establish if two rdma_cm_ids actually are the
same. This was implemented by comparing their addresses. But, an
rdma_cm_id may be destroyed and allocated again. Thus, a *new* id, but
the address could still be the same as the *old* one.

Solved by using an idr id as the cm_id's context. Added helper
functions to create and destroy rdma_cm_ids and comparing the
rdma_cm_ids.

Orabug: 29391909

Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
Tested-by: Rosa Lopez <rosa.lopez@oracle.com>
Reviewed-by: Hans Westgaard Ry <hans.westgaard.ry@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
net/rds/ib.c
net/rds/ib.h
net/rds/ib_cm.c
net/rds/ib_send.c
net/rds/rdma_transport.c
net/rds/rdma_transport.h