On Wed, Aug 13, 2008 at 06:34:49PM -0700, Daniel Walker wrote:
I don't think that will work, either - the internal completion
counter must stay in sync so there must be a wait_for_completion()
call for every complete() call. If we make the wait_for_completion()
conditional, then we have to do the same thing for the complete()
call, and that introduces complexity and potential races because the
external flag and the completion cannot be updated atomically....
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
--