]> git.baikalelectronics.ru Git - kernel.git/commit
locking/spinlock/debug: Remove spinlock lockup detection code
authorWaiman Long <longman@redhat.com>
Wed, 8 Feb 2017 19:46:48 +0000 (14:46 -0500)
committerIngo Molnar <mingo@kernel.org>
Fri, 10 Feb 2017 08:09:49 +0000 (09:09 +0100)
commit81e748a1144ae4c88fefbbc2587a871d88d7d13b
tree1b9c1a97e1fa7daab8461f9660f78bd416b528c5
parentc3957ab6c1b758bd6eb7bfe99fd53700c7820cce
locking/spinlock/debug: Remove spinlock lockup detection code

The current spinlock lockup detection code can sometimes produce false
positives because of the unfairness of the locking algorithm itself.

So the lockup detection code is now removed. Instead, we are relying
on the NMI watchdog to detect potential lockup. We won't have lockup
detection if the watchdog isn't running.

The commented-out read-write lock lockup detection code are also
removed.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1486583208-11038-1-git-send-email-longman@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/spinlock_debug.c