]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: fix pending data accounting
authorPaolo Abeni <pabeni@redhat.com>
Wed, 16 Dec 2020 11:48:35 +0000 (12:48 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Dec 2020 18:24:47 +0000 (10:24 -0800)
commitee44f72f376e45666de08d79be2b49bd769ee723
treea9b0f58d59f988a5b21653f7cc648fd99043251b
parent020d2c69cb73f3d9bd8534514af8ebc4470d9146
mptcp: fix pending data accounting

When sendmsg() needs to wait for memory, the pending data
is not updated. That causes a drift in forward memory allocation,
leading to stall and/or warnings at socket close time.

This change addresses the above issue moving the pending data
counter update inside the sendmsg() main loop.

Fixes: 5b096ef79bdd ("mptcp: use mptcp release_cb for delayed tasks")
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c