[openib-general] Re: [PATCH] fix race in mad.c
Sean Hefty
mshefty at ichips.intel.com
Tue Jan 3 12:47:02 PST 2006
Michael S. Tsirkin wrote:
>>There should be some way to fix this that doesn't involve walking a list on
>>every completion. Can't the cleanup be changed? Either move destroying the QP
>>after the workqueue flush or transition it to the error state before flushing.
>
> What about resurrecting my idea to have ib_cq_sync()?
> Then we could just set a flag to suppress queueing more work.
I don't remember the details of ib_cq_sync() off the top of my head.
I think that we need to add a state to struct ib_mad_port_private that can be
checked in ib_mad_thread_completion_handler(). I don't think that a new call is
needed though.
- Sean
More information about the general
mailing list