]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
xio: fix for xio_msg release after teardown
authorCasey Bodley <casey@cohortfs.com>
Wed, 13 May 2015 17:15:10 +0000 (13:15 -0400)
committerVu Pham <vu@mellanox.com>
Thu, 21 May 2015 14:04:26 +0000 (07:04 -0700)
commit5c14a69395cc7faeedbc464af5c2e238788e171b
treeea18e96e36382f05c9489e0c21dbcf6585ec9a6c
parent16d1c1e97d6a4bc04faaadc3fd82cd55320fa090
xio: fix for xio_msg release after teardown

The xio_msg pointers to be freed in XioPortal::release_xio_rsp() are no
longer valid after a call to xio_connection_destroy(). We were already
avoiding the call to xio_release_msg() in this case, but were still
dereferencing the xio_msg for its user_context pointer. Moved the check
for is_connected() outside of the loop to avoid any access to msg.

Suggested-by: Vu Pham <vuhuong@mellanox.com>
Signed-off-by: Casey Bodley <casey@cohortfs.com>
src/msg/xio/XioPortal.h