]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit14c441b564d560dea4c93947d5b40a992e13ca31
tree1e909ad2d71b864e798e2f14838dd756c398dad1
parent2e52213c79c0b94aff42ba898ad9ad57546be67d
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