RDS: IB: Destroy rdma_cm_id when unloading module
rdma_cm_id is not being destroyed as part of module_exit(). This would
lead to memory corruption and eventual node crash if rds_rdma module is
unloaded.
To avoid this, stop listening(destroy rdma_cm_id) as the first step of
unloading the module and curb any more connection attempts.
This undoes the change made by commit
4d4692145bf7 ("RDS: Drop stale
iWARP support")
Orabug:
26089296
Signed-off-by: Avinash Repaka <avinash.repaka@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>