diff options
author | Matthew Wilcox <mawilcox@microsoft.com> | 2018-01-17 07:14:12 -0800 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-01-18 11:56:48 +0100 |
commit | 64f29d1bc9fb8196df3d0f1df694245230e208c0 (patch) | |
tree | fbd97ed1f1ee7d1e9c23c86b1314135b24fcc5e8 /include/linux/hyperv.h | |
parent | 1d966eb4d6326a2521073174e9710713e9846e8b (diff) | |
download | linux-64f29d1bc9fb8196df3d0f1df694245230e208c0.tar.gz linux-64f29d1bc9fb8196df3d0f1df694245230e208c0.tar.bz2 linux-64f29d1bc9fb8196df3d0f1df694245230e208c0.zip |
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
Diffstat (limited to 'include/linux/hyperv.h')
0 files changed, 0 insertions, 0 deletions