summaryrefslogtreecommitdiffstats
path: root/net/tipc/socket.h
diff options
context:
space:
mode:
authorJon Paul Maloy <jon.maloy@ericsson.com>2016-05-02 11:58:45 -0400
committerDavid S. Miller <davem@davemloft.net>2016-05-03 15:51:14 -0400
commit7c8bcfb1255fe9d929c227d67bdcd84430fd200b (patch)
treef8936bb1283b95d293499697bcf580c73bda2477 /net/tipc/socket.h
parent2b84af94a3932b1dcb716d1898edb18b7325dbea (diff)
downloadtalos-op-linux-7c8bcfb1255fe9d929c227d67bdcd84430fd200b.tar.gz
talos-op-linux-7c8bcfb1255fe9d929c227d67bdcd84430fd200b.zip
tipc: re-enable compensation for socket receive buffer double counting
In the refactoring commit d570d86497ee ("tipc: enqueue arrived buffers in socket in separate function") we did by accident replace the test if (sk->sk_backlog.len == 0) atomic_set(&tsk->dupl_rcvcnt, 0); with if (sk->sk_backlog.len) atomic_set(&tsk->dupl_rcvcnt, 0); This effectively disables the compensation we have for the double receive buffer accounting that occurs temporarily when buffers are moved from the backlog to the socket receive queue. Until now, this has gone unnoticed because of the large receive buffer limits we are applying, but becomes indispensable when we reduce this buffer limit later in this series. We now fix this by inverting the mentioned condition. Acked-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/socket.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud