diff options
author | Eric Dumazet <edumazet@google.com> | 2016-12-08 11:41:57 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-09 22:12:21 -0500 |
commit | 02ab0d139cff1efc5aa1fb4378c727668334fe97 (patch) | |
tree | 7aea980802490b448bedac089074929b9c47d13b /arch/hexagon/kernel/time.c | |
parent | 6b229cf77d683f634f0edd876c6d1015402303ad (diff) | |
download | op-kernel-dev-02ab0d139cff1efc5aa1fb4378c727668334fe97.zip op-kernel-dev-02ab0d139cff1efc5aa1fb4378c727668334fe97.tar.gz |
udp: udp_rmem_release() should touch sk_rmem_alloc later
In flood situations, keeping sk_rmem_alloc at a high value
prevents producers from touching the socket.
It makes sense to lower sk_rmem_alloc only at the end
of udp_rmem_release() after the thread draining receive
queue in udp_recvmsg() finished the writes to sk_forward_alloc.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/hexagon/kernel/time.c')
0 files changed, 0 insertions, 0 deletions