]> git.baikalelectronics.ru Git - kernel.git/commit
locking/lockdep: Add a comment about crossrelease_hist_end() in lockdep_sys_exit()
authorByungchul Park <byungchul.park@lge.com>
Mon, 14 Aug 2017 07:00:51 +0000 (16:00 +0900)
committerIngo Molnar <mingo@kernel.org>
Mon, 14 Aug 2017 10:52:17 +0000 (12:52 +0200)
commitbd02dd397d961da326fb3065ae3112890f1849ac
tree40d6e4d2ee27832eefd092b5a538ec035a12df80
parent68e85c82ad5e5c2f8c65c1326766f9b4b4390313
locking/lockdep: Add a comment about crossrelease_hist_end() in lockdep_sys_exit()

In lockdep_sys_exit(), crossrelease_hist_end() is called unconditionally
even when getting here without having started e.g. just after forking.

But it's no problem since it would roll back to an invalid entry anyway.
Add a comment to explain this.

Signed-off-by: Byungchul Park <byungchul.park@lge.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: akpm@linux-foundation.org
Cc: boqun.feng@gmail.com
Cc: kernel-team@lge.com
Cc: kirill@shutemov.name
Cc: linux-mm@kvack.org
Cc: npiggin@gmail.com
Cc: walken@google.com
Cc: willy@infradead.org
Link: http://lkml.kernel.org/r/1502694052-16085-2-git-send-email-byungchul.park@lge.com
[ Improved the description and the comments. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/lockdep.c