On Thu, 2008-06-26 at 14:41 +1000, Dave Chinner wrote:
I think there is some basis to make the changes that you have here.
Specifically this email and thread,
However, I don't like how your implementing this as specifically a
"flush" mechanism for XFS, and the count is limited to just 1 .. There
are several other places that do this kind of counting with semaphores,
and have counts above 1..
Above seems completely pointless.. I would just call
wait_for_completion(), and make the rest of the interface generic.