]> 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)
commit1db9c60f889a2247c96a918653cecb014f5a72bd
tree1e909ad2d71b864e798e2f14838dd756c398dad1
parent7905840d2f4e2eed7183dea12d8994fdaf1367a8
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