Cc: Andrew Morton <akpm@...>, Pekka Paalanen <pq@...>, <linux-kernel@...>, Ingo Molnar <mingo@...>, Arjan van de Ven <arjan@...>, Steven Rostedt <rostedt@...>, Peter Zijlstra <a.p.zijlstra@...>, Andy Whitcroft <apw@...>
It looks like a mutex, it acts like a mutex, but it isn't a mutex,
it's a trap for the unwary. Weird. I was annoyed by it before; now I
see a fellow developer actually getting into that trap.
I'd say, rename DECLARE_MUTEX to DECLARE_SEMAPHORE and let external
code be fixed one way or another (i.e. stick with the "mutex" name or
stick with the semaphore functionality if it's really needed).
--
Regards,
Pavel Roskin
--