]> git.hungrycats.org Git - linux/commit
[TCP]: TCP acts like it is always out of memory.
authorStephen Hemminger <shemminger@osdl.org>
Thu, 1 Jul 2004 06:58:10 +0000 (23:58 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Thu, 1 Jul 2004 06:58:10 +0000 (23:58 -0700)
commit90d90ae3132f22bf526745d913c41448250165e3
tree56c8a1488e57c44f3e6fb2ce7bbc42de9f0c84d5
parentda829c388d48e5a87a734a5420ce92a875720d7e
[TCP]: TCP acts like it is always out of memory.

Current 2.6.7 tree acts as if it is alway under memory pressure because
a recent change did a s/tcp_memory_pressure/tcp_prot.memory_pressure/.
The problem is tcp_prot.memory_pressure is a pointer, so it is always non-zero!

Rather than using *tcp_prot.memory_pressure, just go back to looking at
tcp_memory_pressure.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
net/ipv4/tcp_input.c
net/ipv4/tcp_output.c
net/ipv4/tcp_timer.c