]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: properly annotate nested lock
authorPaolo Abeni <pabeni@redhat.com>
Wed, 16 Dec 2020 11:48:33 +0000 (12:48 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Dec 2020 18:24:47 +0000 (10:24 -0800)
commitb3e7fb93078925ae52bbbbd0c52d01c09642ea0f
tree834ba5fc000948bdca0c0a44a34ff7fa77426c96
parent41587986393998a6f626aa3020982985680d1523
mptcp: properly annotate nested lock

MPTCP closes the subflows while holding the msk-level lock.
While acquiring the subflow socket lock we need to use the
correct nested annotation, or we can hit a lockdep splat
at runtime.

Reported-and-tested-by: Geliang Tang <geliangtang@gmail.com>
Fixes: 294cadabd6a5 ("mptcp: refactor shutdown and close")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c