I'm not sure if I'm breaking any detection with this patch since I haven't looked at that lockdep code before. I do know that the unlock order for locks with a nest lock should not matter, though. Specifically, you should be able to unlock the nest lock followed by all the locks nested underneath it.
Derek Basehore (1): locking/lockdep: Fix nest lock warning on unlock kernel/locking/lockdep.c | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) -- 2.20.0.rc2.403.gdbc3b29805-goog