]> git.proxmox.com Git - mirror_qemu.git/commit - migration/rdma.c
rdma: clean up of qemu_rdma_cleanup()
authorIsaku Yamahata <yamahata@private.email.ne.jp>
Tue, 13 Aug 2013 02:12:43 +0000 (11:12 +0900)
committerJuan Quintela <quintela@trasno.org>
Tue, 24 Sep 2013 11:22:50 +0000 (13:22 +0200)
commit5a91337cdf343b94474f8bbecab85a8c00f6d2a1
tree090e8534de0cbd1caba97345396aef8088b92a44
parent6cd0beda2c3c21fd7575e944764f392be7ef50c1
rdma: clean up of qemu_rdma_cleanup()

- It can't be determined by RDMAContext::cm_id != NULL if the connection
  is established or not.
- RDMAContext::cm_id is leaked and not destroyed because it is set to NULL
  too early.
- RDMAContext::qp is created by rdma_create_qp() so that it should be destroyed
  by rdma_destroy_qp(). not ibv_destroy_qp()

Cc: Michael R. Hines <mrhines@us.ibm.com>
Signed-off-by: Isaku Yamahata <yamahata@private.email.ne.jp>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration-rdma.c