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