On Mon, 14 Dec 2020, Paolo Abeni wrote:
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: 6e628cd3a8f7 ("mptcp: use mptcp release_cb for delayed tasks")
Signed-off-by: Paolo Abeni <pabeni(a)redhat.com>
v1 -> v2:
- really fix broken accounting
net/mptcp/protocol.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
Thanks Paolo, looks good for the -net tree.
Reviewed-by: Mat Martineau <mathew.j.martineau(a)linux.intel.com>