Cc: Linus Torvalds <torvalds@...>, Jeremy Fitzhardinge <jeremy@...>, Peter Zijlstra <a.p.zijlstra@...>, David Miller <davem@...>, <hugh@...>, <mingo@...>, <akpm@...>, <linux-kernel@...>, <davej@...>, <srostedt@...>
On Thursday 09 October 2008 02:27, Steven Rostedt wrote:
An outer one might be more likely to be contended, so you might want
to release it asap.
Other times, you have lock A and lock B held (like scheduler rqs).
You can say unlock(A); unlock(B);
or if (A < B) unlock(B); unlock(A); if (A > B) unlock (B);
I don't really think it would make things more maintainable, FWIW.
--