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)
commite8887b716142e41d5b975309a96fdcbe8e5bd698
treee8ba720ed2d121ea107d8ef76b520872cd3c548f
parent6b9ea5c81ea2bed80dc98a38d475124a87e7ab5d
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