Release order should always be totally irrelevant, whether you hold outer
locks or not. Only the order of _getting_ locks matter.
And yes, if there is an outer lock, even the order of getting locks is
irrelevant, as long as anybody who gets more than one inner lock always
holds the outer one.
Linus
--