]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: fix tso_should_defer in 64bit
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Sat, 6 Dec 2008 06:49:37 +0000 (22:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Dec 2008 06:56:07 +0000 (22:56 -0800)
commit71b821c5e0858f8acc9a83c8aa902af8f4e4872c
tree8632a450cff2f211f7c5a9f1a494aed47081fae7
parent1e21cdac4e98bfc9bfe55715044d58a92551a7b3
tcp: fix tso_should_defer in 64bit

Since jiffies is unsigned long, the types get expanded into
that and after long enough time the difference will therefore
always be > 1 (and that probably happens near boot as well as
iirc the first jiffies wrap is scheduler close after boot to
find out problems related to that early).

This was originally noted by Bill Fink in Dec'07 but nobody
never ended fixing it.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c