]> git.openfabrics.org - ~shefty/librdmacm.git/commit
librdmacm: Check 'init' under mutex
authorSean Hefty <sean.hefty@intel.com>
Tue, 26 Nov 2013 21:16:19 +0000 (13:16 -0800)
committerSean Hefty <sean.hefty@intel.com>
Tue, 26 Nov 2013 21:16:19 +0000 (13:16 -0800)
commitea5851998c11b8211170179a6d924d4935fec0a1
treeccdc242c2debe1fcb36d673c1005d1c45760c354
parentb70a390d8bd8a679571f06ab82e42d68a99bc7d2
librdmacm: Check 'init' under mutex

ucma_ib_init() does a quick check that access to ibacm has
been initialized.  This check is done outside of the
acm_lock mutex.  We need to check init again inside of
holding the mutex to ensure that we don't run the
initialization code twice.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/acm.c