]> git.openfabrics.org - ~ardavis/dapl.git/commit
scm: improve serialization of destroy and state changes
authorArlin Davis <arlin.r.davis@intel.com>
Mon, 28 Sep 2009 17:42:52 +0000 (10:42 -0700)
committerArlin Davis <arlin.r.davis@intel.com>
Mon, 28 Sep 2009 17:42:52 +0000 (10:42 -0700)
commita4adf463695ba75beaa1fe79d514346bf5fe2cb5
treecd3fdffecfe94106fdf96fea17dc02f8352085d2
parent29358ccc587db55fe5f5a1b14eed9e0e31f5f02c
scm: improve serialization of destroy and state changes

WinOF testing with slightly different scheduler and verbs
showed some issues with cleanup. Add better protection around
destroy and move state change before socket send to insure
correct state in multi-thread environment targeting the same
device on send and recv.

Change DCM_RTU_PENDING to DCM_REP_PENDING and
and add static definition to local routines for better
readability.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
dapl/openib_common/dapl_ib_common.h
dapl/openib_scm/cm.c