[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1338050385.10390.2.camel@laptop>
Date: Sat, 26 May 2012 18:39:45 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Ming Lei <ming.lei@...onical.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org, Alan Cox <alan@...ux.intel.com>,
Arnd Bergmann <arnd@...db.de>
Subject: Re: [PATCH] tty: tty_mutex: fix lockdep warning in
tty_lock_pair(v3)
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists