]> git.baikalelectronics.ru Git - kernel.git/commit
locking/lockdep: Make global debug_locks* variables read-mostly
authorWaiman Long <longman@redhat.com>
Fri, 19 Oct 2018 01:45:18 +0000 (21:45 -0400)
committerIngo Molnar <mingo@kernel.org>
Fri, 19 Oct 2018 05:53:18 +0000 (07:53 +0200)
commitea667bdc403aceffdabbaee78aa50849333cea3e
treec7fc12f5c710502f98bdb917d3eaf9da0943b000
parent8e9f1462ce94c4f12a9d1bf596a38a1873e64986
locking/lockdep: Make global debug_locks* variables read-mostly

Make the frequently used lockdep global variable debug_locks read-mostly.
As debug_locks_silent is sometime used together with debug_locks,
it is also made read-mostly so that they can be close together.

With false cacheline sharing, cacheline contention problem can happen
depending on what get put into the same cacheline as debug_locks.

Signed-off-by: Waiman Long <longman@redhat.com>
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: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
Link: http://lkml.kernel.org/r/1539913518-15598-2-git-send-email-longman@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/debug_locks.h
lib/debug_locks.c