[openib-general] Re: [PATCH] [RFC] - dapl - dat_ep_free() can return without
James Lentini
jlentini at netapp.com
Thu Apr 6 10:06:52 PDT 2006
On Tue, 4 Apr 2006, Steve Wise wrote:
> > What happens if a consumer attempts to free the EP from a callback?
>
> There are no direct consumer callbacks in usermode are there? consumers
> call dat_evd_wait() or whatever and get scheduled. Not like kernel
> mode... Or am I confused?
You're right. The DAT consumer thread calling dat_ep_free() will never
be a provider (or verbs) thread.
It looks like there needs to be some synchronization around destroying
the cm_id with the dapli_thread(), though.
Could we only delete the QP in dat_ep_free as Sean suggested and leave
the cm_id cleanup for later as is being done now?
More information about the general
mailing list