]> 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)
commit669b2751fd8817d56c40300a1f150311d03eb8fa
treee8ba720ed2d121ea107d8ef76b520872cd3c548f
parent9d2c74f4620b1d6508e9bf592d702265762c0b08
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