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

Michael S. Tsirkin mst at mellanox.co.il
Tue Jan 3 23:01:41 PST 2006


Quoting r. Sean Hefty <mshefty at ichips.intel.com>:
> 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.

Right, I just tried to say you need to lock.

-- 
MST



More information about the general mailing list