On Tue, 2008-05-27 at 18:10 +0800, Dave Young wrote:
This isn't really a generic solution, is it? It only works because we
currently only have two users of the interface functions, so if we
reclassify one they look separate to lockdep. It will fall over again
if we ever get another one.
Surely the correct fix is to initialise lockdep for the mutex the same
way we did for the semaphore in class_register() (which does exactly the
same locking without triggering lockdep)? That way we'll also fix the
problem for other conversions of semaphore->mutex.
James
--