]> git.openfabrics.org - ~shefty/rdma-win.git/commit
dapl: move close device after async thread is done using it
authorSean Hefty <sean.hefty@intel.com>
Fri, 22 Jan 2010 22:48:54 +0000 (14:48 -0800)
committerSean Hefty <sean.hefty@intel.com>
Thu, 28 Jan 2010 23:35:17 +0000 (15:35 -0800)
commit81beb1f83c87c85a473f9cc153ec564e6d832f57
treeb48b17c546b9538957a0e29b2216b7997f9002e0
parentdcdc467cbba7e35c2ea45947ccc51352b358c0ce
dapl: move close device after async thread is done using it

Before calling ibv_close_device, wait for the asynchronous
processing thread to finish using the device.  This prevents
a use after free error.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
trunk/ulp/dapl2/dapl/openib_cma/device.c
trunk/ulp/dapl2/dapl/openib_scm/device.c