]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: split mptcp_clean_una function
authorFlorian Westphal <fw@strlen.de>
Tue, 3 Nov 2020 19:05:06 +0000 (11:05 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Nov 2020 01:45:53 +0000 (17:45 -0800)
commit23e7212e50cb20423524dcce74fe04bbe1ecc787
tree526be8c3fbebf6cdcbf7bc770dcec3f218dca320
parent0e4834b204f22ed14b48e3a480fbea4a790259b6
mptcp: split mptcp_clean_una function

mptcp_clean_una() will wake writers in case memory could be reclaimed.
When called from mptcp_sendmsg the wakeup code isn't needed.

Move the wakeup to a new helper and then use that from the mptcp worker.

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/protocol.c