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)
commit95ed690ebc72ad6c89068f08197b51fe4d3c3b48
tree526be8c3fbebf6cdcbf7bc770dcec3f218dca320
parent5a369ca64364b49caff424d2f988901bc7658b6d
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