locking/lockdep: Use __jhash_mix() for iterate_chain_key()
authorPeter Zijlstra <peterz@infradead.org>
Mon, 30 May 2016 16:31:33 +0000 (18:31 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 8 Jun 2016 12:22:00 +0000 (14:22 +0200)
commitdfaaf3fa01d65cf6e2072965bb0b7aaa7285344f
treee2b993df8b9fd932668875f3f985beadecd12f9e
parented8ebd1d514126c0e54fbdbd231427dc91c877c2
locking/lockdep: Use __jhash_mix() for iterate_chain_key()

Use __jhash_mix() to mix the class_idx into the class_key. This
function provides better mixing than the previously used, home grown
mix function.

Leave hashing to the professionals :-)

Suggested-by: George Spelvin <linux@sciencehorizons.net>
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: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/lockdep.c