dapl: move close device after async thread is done using it
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 29 Jan 2010 04:58:32 +0000 (04:58 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 29 Jan 2010 04:58:32 +0000 (04:58 +0000)
commit55730a05e0ce0b91d524394c63076ded0c71bf4c
treeb7b48f2c368f01e5abffb7739643efaa70289051
parent90ebd6320c6f6fea0b88bfe0157369cd9ee521a3
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>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2685 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
ulp/dapl2/dapl/openib_cma/device.c
ulp/dapl2/dapl/openib_scm/device.c