]> git.openfabrics.org - ~shefty/ibacm.git/commit
ibacm: Eliminate device event handler thread.
authorKaike Wan <kaike.wan@intel.com>
Wed, 16 Apr 2014 05:18:53 +0000 (22:18 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 16 Apr 2014 06:33:36 +0000 (23:33 -0700)
commitca1431aad46bb73645097e97b008b5b5be6cd542
treefdaa46a9511efbf10847609353f3127431070606
parent0f52a66fec887512667fb44f79ebdd20558b2cbb
ibacm: Eliminate device event handler thread.

The event handler thread creates synchronization issues
with the client request, especially when address/endpoint/port
is removed or shut down. This patch moves the device event
handling code into acm_server() so that event and client
reqest are serialized to avoid any potential synchronization
issues.  We also lose the overhead of an additional thread.

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