]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: remove locking in mptcp_diag_fill_info
authorFlorian Westphal <fw@strlen.de>
Fri, 8 Apr 2022 19:45:59 +0000 (12:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2022 10:55:53 +0000 (11:55 +0100)
commitbf7b6b8f9a9347e66708e698fa9bdd3a3b6d1ad7
treee8ba720ed2d121ea107d8ef76b520872cd3c548f
parente761922b34f4f85b97f927f318590a63472dd811
mptcp: remove locking in mptcp_diag_fill_info

Problem is that listener iteration would call this from atomic context
so this locking is not allowed.

One way is to drop locks before calling the helper, but afaics the lock
isn't really needed, all values are fetched via READ_ONCE().

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/sockopt.c