Quoting r. Sean Hefty <[EMAIL PROTECTED]>:
> Ah, I was looking around the kernel include files for some sort of signaled
> event. A completion looks like it's exactly what we want. Would replacing
> wake_up() with complete() and wait_event() with wait_for_completion() work?
Yea but notice wait_for_completion does not have a condition, so you have to
if (!atomic_dec_and_test())
wait_for_completion()
and don't forget you must initialize the condition before each use.
--
MST
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general