]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: defer work schedule until mptcp lock is released
authorPaolo Abeni <pabeni@redhat.com>
Wed, 26 Feb 2020 09:14:52 +0000 (10:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 04:46:26 +0000 (20:46 -0800)
commit93f8af505a270e515b09dda8a9f0f1107eea165d
tree1e909ad2d71b864e798e2f14838dd756c398dad1
parent65af2cea60ca420ccc6bbd74765d1abee139c08e
mptcp: defer work schedule until mptcp lock is released

Don't schedule the work queue right away, instead defer this
to the lock release callback.

This has the advantage that it will give recv path a chance to
complete -- this might have moved all pending packets from the
subflow to the mptcp receive queue, which allows to avoid the
schedule_work().

Co-developed-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c