[openib-general] [PATCH] 2.6.20 rdma_ucm: fix reporting events with invalid user context
Sean Hefty
mshefty at ichips.intel.com
Mon Jan 8 12:30:34 PST 2007
> Assuming that events are reported in order (correct?) then the user
> space consumer was calling rdma_get_cm_event, got a connection request
> and before calling rdma_accept they have called rdma_get_cm_event
> again and got connection reject ?
The events are reported in order in the kernel, but the same guarantee cannot be
made for userspace if an application is processing events using multiple
threads. However, in the case where the bug occurred, a single thread was
polling for events.
> Or the thing is that there are two threads in user space, one calling
> rdma_get_cm_event and on some events acting by itself where on other
> events causing another thread to act, so it got the conn request and
> moved it to the other thread and then got the conn reject and tried to
> act on it before the other thread called rdma_accept ?
This was what was happening.
- Sean
More information about the general
mailing list