summaryrefslogtreecommitdiffstats
path: root/kernel/pid.c
diff options
context:
space:
mode:
authorByungchul Park <byungchul.park@lge.com>2017-08-14 09:00:52 +0200
committerIngo Molnar <mingo@kernel.org>2017-08-14 12:52:17 +0200
commit907dc16d7e23ec81a126c9585435494fa1b3a4b7 (patch)
tree31b53da542b0fa6cb863c06a39daeed055372acb /kernel/pid.c
parentlocking/lockdep: Add a comment about crossrelease_hist_end() in lockdep_sys_e... (diff)
downloadlinux-907dc16d7e23ec81a126c9585435494fa1b3a4b7.tar.xz
linux-907dc16d7e23ec81a126c9585435494fa1b3a4b7.zip
locking/lockdep: Fix the rollback and overwrite detection logic in crossrelease
As Boqun Feng pointed out, current->hist_id should be aligned with the latest valid xhlock->hist_id so that hist_id_save[] storing current->hist_id can be comparable with xhlock->hist_id. Fix it. Additionally, the condition for overwrite-detection should be the opposite. Fix the code and the comments as well. <- direction to visit hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh (h: history) ^^ ^ || start from here |previous entry current entry Reported-by: Boqun Feng <boqun.feng@gmail.com> 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: 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-3-git-send-email-byungchul.park@lge.com [ Improve the comments some more. ] Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/pid.c')
0 files changed, 0 insertions, 0 deletions