Re: [PATCH] tty: tty_mutex: fix lockdep warning intty_lock_pair(v3)

From: Peter Zijlstra
Date: Sat May 26 2012 - 12:39:52 EST


On Sat, 2012-05-26 at 17:23 +0800, Ming Lei wrote:
>
> You mean that the below is good usage of lock?
>
> LOCK A
> LOCK B
>
> UNLOCK A
> UNLOCK B

Yep, nothing wrong with that. Its lock order that matters, unlock very
much not so.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/