[openib-general] Re: [PATCH] fix race in mad.c

Sean Hefty mshefty at ichips.intel.com
Tue Jan 3 13:15:11 PST 2006


Michael S. Tsirkin wrote:
> We also need a way to make sure that ib_mad_thread_completion_handler is
> not currently running.

Why wouldn't this work?

lock - check state - queue work - unlock

It shouldn't matter if ib_mad_thread_completion_handler() is running or not.

- Sean



More information about the general mailing list