]> git.openfabrics.org - ~ardavis/dapl.git/commit
scm: cleanup orphaned UD CR's when destroying the EP
authorArlin Davis <arlin.r.davis@intel.com>
Wed, 10 Jun 2009 16:09:56 +0000 (09:09 -0700)
committerArlin Davis <arlin.r.davis@intel.com>
Wed, 10 Jun 2009 17:08:54 +0000 (10:08 -0700)
commit3c26870e276a934e2009090e0fca8bdc36c1be67
treeb51bcf190013669c2ad17d90f7578f5bcee62e5d
parent73abd3f58fa7b14241fad98912ef27c7b4fdb47e
scm: cleanup orphaned UD CR's when destroying the EP

UD CR objects are kept active because of direct private data references
from CONN events. The cr->socket is closed and marked inactive but the
object remains allocated and queued on the CR resource list. There can
be multiple CR's associated with a given EP and there is no way to
determine when consumer is finished with event until the dat_ep_free.
Schedule destruction for all CR's associated with this EP during
free call. cr_thread will complete cleanup with state of SCM_DESTROY.

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