diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2009-05-10 22:32:34 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-19 00:05:40 +0200 |
commit | 775273131810caa41dfc7f9e552ea5d8508caf40 (patch) | |
tree | 38ee8e4815d614c483be352524134c6f7fc163c3 /drivers/net/benet | |
parent | Doc: fixed descriptions on /proc/sys/net/core/* and /proc/sys/net/unix/* (diff) | |
download | linux-775273131810caa41dfc7f9e552ea5d8508caf40.tar.xz linux-775273131810caa41dfc7f9e552ea5d8508caf40.zip |
tcp: fix MSG_PEEK race check
Commit 518a09ef11 (tcp: Fix recvmsg MSG_PEEK influence of
blocking behavior) lets the loop run longer than the race check
did previously expect, so we need to be more careful with this
check and consider the work we have been doing.
I tried my best to deal with urg hole madness too which happens
here:
if (!sock_flag(sk, SOCK_URGINLINE)) {
++*seq;
...
by using additional offset by one but I certainly have very
little interest in testing that part.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Tested-by: Frans Pop <elendil@planet.nl>
Tested-by: Ian Zimmermann <itz@buug.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet')
0 files changed, 0 insertions, 0 deletions