]> git.baikalelectronics.ru Git - kernel.git/commit
lockdep: Assign lock keys on registration
authorMatthew Wilcox <mawilcox@microsoft.com>
Wed, 17 Jan 2018 15:14:12 +0000 (07:14 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 18 Jan 2018 10:56:48 +0000 (11:56 +0100)
commit64f29d1bc9fb8196df3d0f1df694245230e208c0
treefbd97ed1f1ee7d1e9c23c86b1314135b24fcc5e8
parent1d966eb4d6326a2521073174e9710713e9846e8b
lockdep: Assign lock keys on registration

Lockdep is assigning lock keys when a lock was looked up.  This is
unnecessary; if the lock has never been registered then it is known that it
is not locked.  It also complicates the calling convention.  Switch to
assigning the lock key in register_lock_class().

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: "David S. Miller" <davem@davemloft.net>
Link: https://lkml.kernel.org/r/20180117151414.23686-2-willy@infradead.org
kernel/locking/lockdep.c