mptcp: pm: add lockdep assertions
authorFlorian Westphal <fw@strlen.de>
Thu, 4 Feb 2021 23:23:30 +0000 (15:23 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 22:35:47 +0000 (14:35 -0800)
commit3abc05d9ef6fe989706b679e1e6371d6360d3db4
tree5672614138e7851ae7d4a191bfd784085d16588c
parent1002b89f23eaa6d48ca1d2f362e894086bd063f1
mptcp: pm: add lockdep assertions

Add a few assertions to make sure functions are called with the needed
locks held.
Two functions gain might_sleep annotations because they contain
conditional calls to functions that sleep.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm.c
net/mptcp/pm_netlink.c
net/mptcp/protocol.c
net/mptcp/protocol.h