locking/lockdep: Define INITIAL_CHAIN_KEY for chain keys to start with
authorYuyang Du <duyuyang@gmail.com>
Mon, 6 May 2019 08:19:24 +0000 (16:19 +0800)
committerIngo Molnar <mingo@kernel.org>
Mon, 3 Jun 2019 09:55:43 +0000 (11:55 +0200)
commitf6ec8829ac9d59b637366c13038f15d6f6156fe1
tree66564bff3b185212908d1c4c164d0304af2d9f12
parente196e479a3b844da6e6e71e0d2a8694040cb4e52
locking/lockdep: Define INITIAL_CHAIN_KEY for chain keys to start with

Chain keys are computed using Jenkins hash function, which needs an initial
hash to start with. Dedicate a macro to make this clear and configurable. A
later patch changes this initial chain key.

Signed-off-by: Yuyang Du <duyuyang@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: bvanassche@acm.org
Cc: frederic@kernel.org
Cc: ming.lei@redhat.com
Cc: will.deacon@arm.com
Link: https://lkml.kernel.org/r/20190506081939.74287-9-duyuyang@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/lockdep.h
init/init_task.c
kernel/locking/lockdep.c